rpjday wrote:
>
> On Fri, 22 Dec 2000, David Brett wrote:
>
> > I am trying to pipe to ping without success.
> >
> > awk '{print$1} testfiles | ping -nc 1
I don't think this syntax is right. Try (in bash):
for foo in `awk '{print $1}' testfile`; do ping -nc 1 $foo; done
[in case your mailer doesn't print them correctly, the symbols before
awk and after testfile are backquotes.]
ping expects its host names to be command line arguments, not standard
input..
--
Michael Jinks, IB // Technical Entity // Saecos Corporation
"No one speaks English and everything's broken." -- T. Waits
"Tom Waits would have made a decent sysadmin." -- M. Jinks
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list
- Re: fdisk related question rpjday
- Re: fdisk related question rpjday
- Re: fdisk related question Fred Edmister
- Re: fdisk related question Bret Hughes
- Re: fdisk related question Gregory Hosler
- pipe to ping David Brett
- Re: pipe to ping rpjday
- Re: pipe to ping Hal Burgiss
- Re: pipe to ping David Brett
- Re: pipe to ping David Brett
- Re: pipe to ping Michael R. Jinks
- Re: pipe to ping Nitebirdz
- Re: pipe to ping David Brett
- RE: pipe to ping Jim Balcomb
- Re: fdisk related question Michael Burger
- lilo booting win98 on 2nd hd... christopher j bottaro
- Re: lilo booting win98 on 2nd hd... Mike Burger
- Re: lilo booting win98 on 2nd hd... John Aldrich
- Re: lilo booting win98 on 2nd hd... Mikkel L. Ellertson
- Re: lilo booting win98 on 2nd hd... Leonard den Ottolander
- Re: lilo booting win98 on 2nd hd... christopher j bottaro
