I use a simple sript to monitor my ISDN connection - you may be able to
extend the logic to cover a PPP connect - your PPP device is probably PPP0,
where my sript looks for APS0 - my ISDN device.

----- Cut Here ----
#!/bin/bash

if $(/sbin/ifconfig aps0 2>&1 | grep "unknown" >/dev/null)
then
        echo isdn down
# code to bring up connection
        /usr/bin/inet.up
else
        echo isdn up
# you could do something here - knowing that connect is up.
fi
----------- End of Script -----------
I run this as a cron job every 5 minutes - to reestablish a connect should
it get interrupted.  You could use it to monitor your PPP device and tale
appropriate action ...

aloha,
dave
At 10:32 PM 5/4/98 +0200, you wrote:
>Can I make a ppp-on script tell me when it's connected to Internet. Now I
have
>to guess and enter route. Be inspired and tell me something that's very
>complicated because otherwise I'll feel stupid for not having figured it out
>myself. 
>
>/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
>  ZOKI, Images
>  Creation d'images & traitement numerique
>  Image creation & digital tweaking
>\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\
>
>Where do you want to go tomorrow? Maybe to your local shop to buy Linux!!?
>
>%% Fin de message / End of message %%
>
>
>-- 
>  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
>http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
>         To unsubscribe: mail [EMAIL PROTECTED] with 
>                       "unsubscribe" as the Subject.
>
>


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to