Re: Ping tester

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. 




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux