Jump to content

check for PHP PID?


jvalarta

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/18204-check-for-php-pid/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.