Article View: aus.computers.linux
Article #56870Re: PPP script not working.
From: mjordan
Date: Fri, 13 Dec 1996 00:00
Date: Fri, 13 Dec 1996 00:00
72 lines
3381 bytes
3381 bytes
Richard, I believe that if you remove the last "\" in the last line of your chat's ppp-on-diler script, you s/b OK... I think because of this character the next blank line is is causing another expectation, in this case only a ^M. Can't guarantee this is the cause, but it is a suggestion. Happy Holidays. In <32AEA66C.3ABD@ans.com.au>, Richard Ashton <ashtons@ans.com.au> wrote: > Hello All, > I have been having problems with my scripts for PPP, > this is the output from my logfile... > Dec 11 22:27:30 localhost pppd[1095]: pppd 2.2.0 started by root, uid > 0 > Dec 11 22:27:31 localhost chat[1096]: expect (^M) > Dec 11 22:28:16 localhost chat[1096]: alarm > Dec 11 22:28:16 localhost pppd[1095]: Connect script failed > Dec 11 22:28:16 localhost pppd[1095]: Exit. > Dec 11 22:28:16 localhost chat[1096]: Failed > I cannot find the 'expect (^M)' in my script, where does this come > from ? here is my /etc/ppp/scripts/ppp-on script. > #!/bin/sh > # > TELEPHONE=???????? > LOCAL_IP=0.0.0.0 > REMOTE_IP=0.0.0.0 > NETMASK=255.255.255.0 > export TELEPHONE LOCAL_IP REMOTE_IP NETMASK > DIALER_SCRIPT=/etc/ppp/scripts/ppp-on-dialer > exec /usr/sbin/pppd -d file /etc/ppp/options /dev/ttyS1 38400 \ > connect $DIALER_SCRIPT > here is my /etc/ppp/scripts/ppp-on-dialer script. > !/bin/sh > # > # This is part 2 of the ppp-on script. It will perform the connection > # protocol for the desired connection. > # > exec chat -v \ > TIMEOUT 10 \ > ABORT '\nBUSY\r' \ > ABORT '\nNO ANSWER\r' \ > ABORT '\nRINGING\r\n\r\nRINGING\r' \ > '' \rAT S0=0 L1 V1 X4 &c1 E1 Q0 \ > 'OK-+++\c-OK' ATH0 \ > TIMEOUT 45 \ > OK ATDT$TELEPHONE \ > CONNECT '' \ > My ISP uses PAP for authentication, so this seems to be o.k but when > I run my 'ppp-on' script I get the messages as above in my log, also > my options file for pppd is copied from the PPP-HOWTO as for PAP use. > could anyone offer me some assistance with this. > Thanks in Advance, Richard Ashton. --------------------------------------------------------------------- Mark J. Jordan Programmer/Analyst ~~~ Give the gift of life... Michigan Community Blood Centers GIVE BLOOD! ~~~ mjordan@mail.com ---------------------------------------------------------------------
Technical Details
Message-ID:
<58s0no$4df@i386.jordan.org>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<32AEA66C.3ABD@ans.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,e862ba1154d7d0d0 X-Google-Attributes: gid102983,public X-Google-Thread: f9b51,e862ba1154d7d0d0 X-Google-Attributes: gidf9b51,public X-Google-Thread: 10669a,e862ba1154d7d0d0 X-Google-Attributes: gid10669a,public From: mjordan@mail.com Subject: Re: PPP script not working. Date: 1996/12/13 Message-ID: <58s0no$4df@i386.jordan.org> X-Deja-AN: 203928602 sender: mjordan@i386.jordan.org references: <32AEA66C.3ABD@ans.com.au> organization: A Red Hat Commercial Linux Site newsgroups: aus.computers.linux,comp.os.linux.networking,comp.os.linux.setup