From owner-freebsd-questions Tue Jan 16 10:24:09 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA01552 for questions-outgoing; Tue, 16 Jan 1996 10:24:09 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA01518 for ; Tue, 16 Jan 1996 10:24:05 -0800 (PST) Received: from argus.flash.net (root@[206.149.24.19]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id JAA28689 for ; Tue, 16 Jan 1996 09:49:52 -0800 Received: (from lists@localhost) by argus.flash.net (8.6.12/8.6.12) id HAA00395; Tue, 16 Jan 1996 07:04:59 -0600 From: mailing list account Message-Id: <199601161304.HAA00395@argus.flash.net> Subject: Re: chat script for PPP connect To: doplcky@metronet.com (Debuggus Maximus) Date: Tue, 16 Jan 1996 07:04:58 -0600 (CST) Cc: freebsd-questions@FreeBSD.org In-Reply-To: <199601160738.AA16794@metronet.com> from "Debuggus Maximus" at Jan 16, 96 01:38:41 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.org Precedence: bulk > Hiya folks. > > I have RTFM till my eyes have crossed and cannot figure out what I am > doing wrong. My modem is on /dev/ttyd1 and chat refuses to talk to it. > Ive been at it for hours. Anyone got suggestions? I did this with > release 2.0 and had no problems, but 2.0.5 seems to choke on it. > Chances are it is a case of operator headspace and timing. If someone > has a script that works I would be most appreciative. here you go: in the file /home/root/bin/pppon: #!/bin/sh pppd /dev/cuaa2 115200 connect "dial.server.for.ppp $1" in the file /home/root/bin/dial.server.for.ppp: #!/bin/sh chat -v ABORT BUSY ABORT 'NO CARRIER' ABORT 'NO DIALTONE' ABORT 'VOICE' '' at\&f1l3\&c1\&d2\&s1\&t4s7=60s11=55e1q0 OK atdt$1 TIMEOUT 45 ogin: your_username assword: your_password beginning...< /dev/cuaa2 > /dev/cuaa2 all you have to do from here is change the port, speed, modem init, username, and password, possibly also the last response string [which is tailored to a portmaster] to whatever the term server answers with after the password. the modem init strings have been used interchangably with both a USR sportster 33.6k and a GVC [rockwell chipset] 14.4k. run it as root as follows: pppon 555-1212 you can play with your own /etc/ppp/options file. have phun! gotta run, gotta turn off the computer, croatian radio has a few minutes of english news on 13,830 kHz at 13:03 UTC Jim -- All opinions expressed are mine, if you | "I will not be pushed, stamped, think otherwise, then go jump into turbid | briefed, debriefed, indexed, or radioactive waters and yell WAHOO !!! | numbered!" - #1, "The Prisoner" jbryant@argus.flash.net - FlashNet Communications - Ft. Worth, Texas