Command/Script required to send an email alert in case command will not respond
I would like to command/script which can send me an alert in case command will not return any o/p and just hung.
As in my case one of the application got hung frequently, but the process running fine, so I would like to set up the alert in which case if it will not return any o/p there should be email alert. In my case the command just hung, I have to quit the same by Ctrl+z.
This can be hard. How would you know if an application was running or just hung? What OS you have, how can you send mails (do you have your own system or need to contact ISP?) Maybe the script can also restart your app instead of sending a mail, or maybe you can modify your app to wake up automatically.
|All times are GMT -5. The time now is 04:05 PM.|