Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

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

No subject

--- ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% loss, time 3006ms

[david at uni musicat]$ head /tmp/pingerr
[david at uni musicat]$

> $ /bin/ping -n -i 10 2>&1 | more

If you're putting this in a script you don't want to hang forever, use the -c 
option (number of ping requests to send) and the -w option (maximum wait 

> That's all the output I got in over a minute.   The  stderr  messages
> didn't appear.  So I tried:

OK, how about forgetting the output and checking $?, which will be set to 0 if 
the host was reachable, or 1 if it was not.

DDDD   David Kramer         david at
DKK D  As far as the laws of mathematics refer to reality, they are
DK KD  not certain; and as far as they are certain, they do not refer
DDDD   to reality                                           -Albert Einstein

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /