1752781 Members
6394 Online
108789 Solutions
New Discussion

Re: scripting and ping

 
SOLVED
Go to solution
A. Daniel King_1
Super Advisor

Re: scripting and ping

I find that a single ping is quite unreliable. I use three or more packets with something along the lines of:

/usr/sbin/ping x.x.x.x -n 3 | /usr/bin/grep "100% packet loss" > /dev/null && echo Down! || echo Up!
Command-Line Junkie
T G Manikandan
Honored Contributor

Re: scripting and ping