Hi Joseph --
On Thu, 27 Jan 2000, Joseph Morrison wrote:
> Hello all,
>
> Can any of you suggest the cleanest way for a shell script to test
> whether the diald connection is up or down?
Here is a script I use to do that:
#!/bin/sh
if ( /sbin/ifconfig | grep -q ppp0 ); then
echo "Connected on line."
else
echo "On line not connected."
fi
Hope that helps.
Chuck.
My Web site is http://www.mhonline.net/~chuckh
Due to a shortage of devoted followers, the production of great leaders
has been discontinued.
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]