Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU |
--- 66.250.33.252 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 64.28.81.46 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 time). > 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 thekramers.net http://thekramers.net DK KD 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 | |
We also thank MIT for the use of their facilities. |