Quote:
Originally Posted by depam
Need help to create a script
|
What you need is to separate your questions and match each one to a solution. When you have got it all, then you glue it together as a script.
Quote:
Originally Posted by depam
Check every 30 minutes for
|
That's a cron job. Show us how the cron entry would read if the script was called "/usr/local/bin/check".
Quote:
Originally Posted by depam
variable showing "NOT RESPONDING"
|
That's grep. Show us how the grep line would look like.
Quote:
Originally Posted by depam
how to convert the above time into something that I can use an operator "now is equal or less than".
|
That's epoch. Read 'man date' and show us:
- how you display time in epoch format,
- how you display the time it is now in epoch format,
- how you display the time 30 minutes ago in epoch format.
Quote:
Originally Posted by depam
I am a newbie on scripting.
|
All the more reason to put in a wee bit more effort IMHO. Also, as you seem to be working with Voice over IP and Short Message Services, it wouldn't harm to check if interfaces, tools or 3rd party applications exist that help you with diagnosing and reporting problems.