Jump to content

Archived

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

jvalarta

check for PHP PID?

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.

Share this post


Link to post
Share on other sites

×

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.