How to determine if a script instance is already running?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a command line script that needs to run continuously, and so I plan
to have cron execute it every so often.  I want to have the script first
check to see if another instance is already running and, if so, die().

Now, I know I can exec the process list and parse through the output, but is
there and easier, faster, cooler, sexier, better way?  :o)

JM

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux