[wellylug] fping and cut

Sam Sargeant sam at cuba.st
Tue Jun 22 22:02:06 NZST 2004


On Tue, Jun 22, 2004 at 09:45:27PM +1200, Jamie Baddeley wrote:
> 'cut' to cut a fping response line. But it's refusing to behave. Can
> anyone tell me why?

Yes. fping prints to stderr. 

> the command is:
> munter:/home/viewpoint# fping -p 10 -c 5 -q www|cut -d "/" -f 5
> www : xmt/rcv/%loss = 5/5/0%, min/avg/max = 11.2/17.4/24.7
> munter:/home/viewpoint#

fping -p 10 -c 5 -q www 2>&1 |cut -d "/" -f 5

Sam.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.wellylug.org.nz/pipermail/wellylug/attachments/20040622/0493b3b6/attachment.pgp 


More information about the wellylug mailing list