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.
DejaVu Sans Mono
Droid Sans Mono
Envy Code R
Source Code Pro
The default, whatever it is
Results (376 votes). Check out past polls.