commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Cleaner with a mailto assignment in crontab (if the command fails you get an email):
10,30,50 * * * * ping -q -c1 -w3 192.168.0.14 >/dev/null
There are 2 alternatives - vote for the best!
Every 20 minutes test if host with IP 192.168.0.14 is 'dead' or not reachable.
The line should be put in your crontab file.
If you can do better, submit your command here.
You must be signed in to comment.