Is there a known host address that you can only ping thru the ppp interface?
If so, you might script a ping test, then let X act based on the result
code.  Something like this might work:

        #Wait for 4 'echo reply's or 10 seconds, whichever is greater
        #NOTE: -w does not work under kernel 2.2.12-20 (RH 6.1).
        #      It does work under kernel 2.2.16-22 (RH 7.0) and under
        #      kernel 2.2.16-3 (RH 6.2), or maybe its the ping version?
        ping -c 4 -w 10 $dest
        rc=$?
        if [ $rc = 0 ]; then
                ... success ...
        else
                ... failure ...
        fi

$dest can be a command line entry, or you can code it directly into the
script.  To test failed attempts, ping www.microsoft.com. :)

bd



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to