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.
Unixish Shell Scripting languages
Other (post in comments)
Results (311 votes). Check out past polls.