****************************************
* LUG meet on 12 Jan. 2003 @ VJTI
****************************************

On Thursday 02 January 2003 01:25 am, Vinod wrote:
> Dear Bhargav,
> if ppp0 is not active,
>
> the line ifconfig ppp0 > temp shows error.

Yes, and the temp file is created as empty.

> what does [-z temp] function do ?

It evaluates to true if the file size is 0 (in the case of ppp0 being down)

But this seems to be a bit overkill. The approach others suggested seems 
simpler to implement and less prone to syntactic error. Try going with that.
:-)

-- 
Bhargav Bhatt,
Department of Applied Physics and Applied Mathematics,
Columbia University.
--
"If English was commutative, we could all talk like Yoda." - Anonymous.
--
http://www.columbia.edu/~bbb2004

--
_______________________________________________

http://mm.ilug-bom.org.in/mailman/listinfo/linuxers



Reply via email to