I have a script that I'd like to run as often as possible.
The script may only run in 1 instance.
My idea is to have a cron script to start it once every hour. The script should write a run file, and if the run file exists, exit.
Is this the best way?
yeah. Accpeted method is to write a lock file to /var/lock and exit if it exists
If the server boots, will /var/lock be emptied, or should I manually clean that area?
Thanks, Jacob
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]