it seems that ping result code of 0 is succesful, 1 is not... thanks for the help.

From: Mike Blancas <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [plug] connection script
Date: Tue, 29 Oct 2002 08:50:58 +0800 (PHT)

Try using nagios. You can run scripts/commands (including email
notification) depending on the percent packet loss or ttl of ping.

On Tue, 29 Oct 2002, Ronald Warner wrote:

> for those scripting experts... i am trying to create a script that will
> ping a site and base on the ping result code will run an else clause...
> does ping give out result codes? if it does, what are they? thanks.

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]

_________________________________________________________________
Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp

_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]

Reply via email to