Jump to content


Photo

check for PHP PID?


  • Please log in to reply
No replies to this topic

#1 jvalarta

jvalarta
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 21 August 2006 - 04:16 PM

When starting a PHP script (myscript.php) from command line, it gives me the PID, great.  So my challenge is to build another PHP script (checker.php) that a cron fires off every so often to check to make sure the main PHP script (myscript.php) is still running, and if not, kick it off again.

Any ideas? I'm stumped and have googled the heck out of this with no luck.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users