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).
In reply to Re: singleton lock not reliable
by eyepopslikeamosquito
in thread singleton lock not reliable
by pidloop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |