Ping tester

Pasha e97665728 at 013.net
Tue Sep 28 20:18:43 UTC 2004


On Tue, 2004-09-28 at 20:14, Michael Jezierski - Systec Conveyors wrote:
> what's a good ping tester I can setup on a FC2 box, perferably without 
> any X-windows. Just need to ping a couple sites and if there's a problem 
> email the person responsible for that site.
> 
Use ping -c <number>. Ping will return 1 if no answers were received,
otherwise it will return 0. So something like 
if ! ping -c 10 -q host.to.check > /dev/null
then
mail -s "network problem" .....
fi

may do the job. 






More information about the fedora-list mailing list