-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 noong nakaraang Wed, 16 Jul 2003 14:27:59 +0800 si Jun Tanamal <[EMAIL PROTECTED]> ay sumulat ng ganito:
> I want to monitor my connection to the ISP say, every 5 > minutes. How do I make a script to ping a specific IP and > make it send an email warning message when the connection > is down? Thanks for the ideas.. > > -Jun you can make a script that will check the connections and place it at your cron job here's a sample script for you to use as a referrence #!/bin/sh ping -c 2 <ip-address-here> if [ ! "$?" = 0 ]; then <mail command here> exit 1 fi - -- Gabriel L. Briones III <[EMAIL PROTECTED]> Network Administrator, OmniSoft Solution's Inc. Linux User # 273591 09178264717 - ----------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/FPPODGdUl1iiRBERApS+AKCpxdcsIWsyNbQqZmGCXzTdV265EQCgnCjE g+76d9QM7T6elrqCeE9mxcc= =raY6 -----END PGP SIGNATURE----- -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
