in reply to Having several processes share a logfile
The POD for flock demonstrates how to obtain an advisory lock, and then seek to the EOF before appending. The example is pretty simple. Look at over and I'm sure it will make sense.
Once (shame on you!)
Twice (shame on me!)
More often than I'd like to be
All the time
Just when answering stupid polls
Who you callin' a fool?
I refuse to vote in this ridiculous poll
Results (514 votes). Check out past polls.