Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Is this possible/easy?
- X-seq: zsh-users 743
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Jason Price <gt5076c@xxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Is this possible/easy?
- Date: Mon, 3 Mar 1997 09:24:53 -0800
- In-reply-to: Timothy Luoma <luomat@xxxxxxxx>        "Re: Is this possible/easy?" (Mar  3,  8:16am)
- References: <Pine.SUN.3.95.970303081256.25410A-100000@kira>
- Reply-to: schaefer@xxxxxxx
I haven't used this for a while, but I happened to have it sitting around
in my FPATH, named pingall ...
for i in $(sed 's/#.*//' < /etc/hosts | awk '{print $2}')
do 
    echo "Trying $i ... " 
    case $HOSTTYPE in
    hp9000*) /etc/ping $i -n 3 ;;
    sun4) /usr/etc/ping $i 56 3 ;;
    *) ping -c 3 $i ;;
    esac 2> /dev/null
    echo '=============================' 
done
-- 
Bart Schaefer                             Brass Lantern Enterprises
http://www.well.com/user/barts            http://www.nbn.com/people/lantern
Messages sorted by:
Reverse Date,
Date,
Thread,
Author