http://qs321.pair.com?node_id=11134222


in reply to singleton lock not reliable

This is how I do it: Re: Preventing multiple instances (References on flock and running one copy of a script at a time) (a simple way to verify everything is working correctly is to write debug trace to an absolute-path log file).