bug-bash
[Top][All Lists]
Advanced

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

Re: set `ping -qc3 xxx.xxx.xxx.xxx 2>/dev/null | grep transmitted`


From: Paul Jarc
Subject: Re: set `ping -qc3 xxx.xxx.xxx.xxx 2>/dev/null | grep transmitted`
Date: Thu, 01 Nov 2001 11:13:44 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

rick <address@hidden> wrote:
> if [ $4 -gt 0 ];
...
> if the 4th item (should be a 3 if the interface is up) exists and has
> its group id bit set(-g) and if the file descriptor is open and refers
> to a terminal (-t) returns true.

-gt is different from -g and -t.  See `help test`.

> I don't understand this piece of code, I would like to.

Ask about it on comp.unix.shell.  Post the whole piece of code (or,
better, the URL for it), not just one line.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]