jvalarta Posted August 21, 2006 Share Posted August 21, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/18204-check-for-php-pid/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.