chaskins has asked for the wisdom of the Perl Monks concerning the following question:

Is there any modules that could aid me or advice that could be offered as to how I'd communicate with a modem and setup a PPP connection with an ISP? The situation I have is my ISP drops the connection after 2 hours and I want to write a script that would monitor the connection, if it finds it's dropped it then dials the ISP and reconnects me to the web? Thanks Chris

Replies are listed 'Best First'.
Re: Handling a PPP connection
by Cirollo (Friar) on Jun 05, 2001 at 18:08 UTC
    If you happen to be using Linux, look into Diald.

    If you're using Windows... eh, maybe you could set up a Linux box to route for you :)

Re: Handling a PPP connection
by TheoPetersen (Priest) on Jun 05, 2001 at 19:09 UTC
Re: Handling a PPP connection
by RhetTbull (Curate) on Jun 05, 2001 at 19:32 UTC
    In additon to the other scripts already mentioned, you might find mlong's ppp-keepalive script useful.
Re: Handling a PPP connection
by one4k4 (Hermit) on Jun 05, 2001 at 19:25 UTC
Re: Handling a PPP connection
by larryk (Friar) on Jun 05, 2001 at 20:00 UTC
    On my win2k box there's a "redial if line is dropped" (or similar wording) checkbox in the advanced DUP settings. you should check there first - no need to write a perl script to do something the OS already does!

    "Argument is futile - you will be ignorralated!"

Re: Handling a PPP connection
by ckohl1 (Hermit) on Jun 05, 2001 at 20:54 UTC
    If the target is a Linux box, the PPP daemon will call '/etc/ppp/ip-down' on disconnect. You can place your restart script in there.


    Chris
    'You can't get there from here.'