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.
A quick and dirty workaround could be for the script to update a row in a database with a date column set to CURRENT_TIMESTAMP. Have the cron second script check if the timestamp of this row is recent.