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

Does anyone know how to make a Win95 PC or Linux machine dial into an ISP via a Perl script (using a normal modem) ?

I have seen it done but do not have the script code :-(

Digsy

Replies are listed 'Best First'.
Re: Dial into ISP
by t0mas (Priest) on Oct 04, 2000 at 12:09 UTC
    You can use Win32::RASE to create/delete/change/manage RAS/DUN entries on Win32 boxes.

    /brother t0mas
      From the docs of Win32::RASE:
      $hrasconn = RasDial($EntryName, $PhoneNumber, $UserName, $Password, $D +omain, $CallbackNumber); $EntryName - RAS/DUN entry, the only mandatory parameter $PhoneNumber - an overriding phone number (if not needed - use "" or +undef).
      Jouke Visser, Perl 'Adept'
Re: Dial into ISP
by moen (Hermit) on Oct 04, 2000 at 11:54 UTC
    Well with linux it should be easy calling pppd (all command line based "pppd connect {some config}") from the perl script. It's all discussed in the Linux HOWTO's very well

    With Win95 i got no idea. But i guess that you may call a predefined connection or use some command line based winsock module.

Re: Dial into ISP
by le (Friar) on Oct 04, 2000 at 12:01 UTC
    You might take a look at PTkPPP.