[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: PPP initial connection



-----BEGIN PGP SIGNED MESSAGE-----

stevem <stevem@mantis.microserve.com>, in an immanent manifestation of deity, wrote:
>Also, while I'm on the subject, has anyone crafted a perl script that 
>replaces chat, or know where there is one? I tried it and gave up and now
>have a hybrid perl/chat script. Pure perl would be preferred.

Check out Comm.pl at -CPAN-/authors/id/ERICA/Comm.pl-1.5beta.tar.gz
(-CPAN- is any CPAN site.  I got this from ftp://ftp.delphi.com/pub/mirrors/packages/perl/CPAN/)

(BTW, this is both perl4 and perl5 compliant...)

- From the Announcement:
What:

  "Comm.pl", a successor to "chat2.pl", providing a high level interface to:

    - STREAM/UDP sockets
    - pseudo-tty control
    - Revamped "expect"-like functionality (plus "interact").
    - ioctl/stty terminal mode control

  other things:

    - Support for BSD & SVR4 flavors (so far, tested with SunOS4.x, olaris2.x)
    - sample client/server and expect scripts

Why:

  - "chat2.pl" doesn't have SVR4 support.  People have been posted a
    lot with questions about getting SOCK_STREAM right, or how to get
    a pty.

  - The Expect pattern/action pair only confuses people the way that chat2
    emulated it.  A Perl "expect" should be simple; it should not be
    trying to execute code given as parameters; that's what the Perl
    interpreter is for.  Also, the TCL Expect program has a whole lot
    of stuff that we don't really need because it's available via other
    methods in Perl (i.e. "send_tty").

Darren
- -- 
<torin@daft.com> <http://www.daft.com/~torin/>    <tnd@iswp.org> <torin@io.com>
Darren Stalder/2608 Second Ave, @282/Seattle, WA 98121-1212/USA/+1-800-921-4996
@ Do you have your clothes on? I probably don't. Take yours off. Feel better. @
@ Sysadmin, webweaver, postmaster for hire.  C/Perl/CGI programmer and tutor. @

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.4, an Emacs/PGP interface

iQCVAwUBMcBSqI4wrq++1Ls5AQHz+AP/SPNRnCiyppUQF7nn13THQmz+eNQUIS2B
F/aHK5Sz/3BZe8ZyRIxtfWHEieNWqz5T8N0lrisoXpu+N+KEhc9/i0VsOBVky5LM
hIRhZKHJ4b/sW3SNLOE0ZC02TyixKYTiRfdoBm1ZRHP6YrS4sgTtzi+ySx/02ezO
o2xkV2B+8HA=
=D2pO
-----END PGP SIGNATURE-----


Reply to: