Here's a little program that I picked up I don't remember where. It's what I use when I have this sort of problem. It atomically creates a lock file and tests for a previous lock file of the same name -- properly handling processes that quit without removing the lock, etc...

Rick


Attachment: shlock.shar
Description: Binary data





Reply via email to