Check if a php script is still running

Posted by Nirmal on Stack Overflow See other posts from Stack Overflow or by Nirmal
Published on 2010-04-14T01:52:34Z Indexed on 2010/04/14 2:03 UTC
Read the original article Hit count: 410

Filed under:
|
|

I have a script that listens to a jabber server and responds accordingly. Though it's not supposed to stop, last night it did. Now I want to run a cron job every minute to check if the script is running, and start it if not.

The question is, how do I check if a particular script is still running?

Some solutions have been posted here, but those are all for Linux, while I am looking for a Windows solution. Any ideas please? Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about cron