> 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]

Reply via email to