> Can any of you suggest the cleanest way for a shell script to test
> whether the diald connection is up or down?
> Any suggestions much appreciated!
I have a shell script function which I pilfered from someone a while back,
which returns true or false depending on whether the link is up. Check this
out:
pppisup(){
[ "`/sbin/route -n|/bin/grep -E '^0.0.0.0.*ppp'`" ]
return
}
Will that do?
Edward.
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]
- cleanest, simplest way for a shell script to determine wh... Joseph Morrison
- Re: cleanest, simplest way for a shell script to det... Edward Dekkers
- Re: cleanest, simplest way for a shell script to det... S.Toms
- Re: cleanest, simplest way for a shell script to det... fred smith
- Re: cleanest, simplest way for a shell script to det... Steve Glines
- Re: cleanest, simplest way for a shell script to det... Chuck Hallenbeck
- RE: cleanest, simplest way for a shell script to... Dale W Hodge
- RE: cleanest, simplest way for a shell scrip... Ed Doolittle
- Re: cleanest, simplest way for a shell script to det... jes
