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. :-)