I have a .sh file which appends to the end of a log file. It is called from a number of different shells. Clearly if I start 2 copies at once, there's a risk they will argue. Is there any way to set up a mutex, so that only one copy can run at a time? There's some c code that writes it, and that uses flock - can I share that lock? TVM D