On Tue, 2004-09-28 at 19:23, Jacob Larsen wrote: > 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 Cheers Blake Swadling Senior Software Engineer Newton Pty Ltd Telephone: +61 2 6247 3544 Fax: +61 2 6247 3533 Mobile: +61 407 026277 Web: http://www.newton.com.au
signature.asc
Description: This is a digitally signed message part