Article View: aus.computers.linux
Article #56855Re: PPP script not working.
From: Yon Han Chong
Date: Wed, 11 Dec 1996 00:00
Date: Wed, 11 Dec 1996 00:00
70 lines
3534 bytes
3534 bytes
Richard Ashton 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 \ On above line '' means expecting (^M) which is carriage return. > 'OK-+++\c-OK' ATH0 \ > TIMEOUT 45 \ > OK ATDT$TELEPHONE \ > CONNECT '' \ At the end of above line you have \ which means there is more script but I presume that there is more. > > 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. Are you able to hear dailing tone when you execute this script? -- ---------------------------------------------------------------------- Yon Han Chong | Flow Control and Prediction Group | Tel: + 44 1234 750 111 ext.5356 Cranfield College of Aeronautics | Fax: + 44 1234 752 149 Cranfield University | E-mail: Y.H.Chong@cranfield.ac.uk United Kingdom | ----------------------------------------------------------------------
Technical Details
Message-ID:
<32AF057F.167E@cranfield.ac.uk>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: f9b51,e862ba1154d7d0d0 X-Google-Attributes: gidf9b51,public X-Google-Thread: 102983,e862ba1154d7d0d0 X-Google-Attributes: gid102983,public X-Google-Thread: 10669a,e862ba1154d7d0d0 X-Google-Attributes: gid10669a,public From: Yon Han Chong <Y.H.Chong@cranfield.ac.uk> Subject: Re: PPP script not working. Date: 1996/12/11 Message-ID: <32AF057F.167E@cranfield.ac.uk> X-Deja-AN: 203545908 references: <32AEA66C.3ABD@ans.com.au> to: " ashtons@ans.com.au" <"Richard Ashton"> content-type: text/plain; charset=us-ascii organization: Cranfield University mime-version: 1.0 newsgroups: aus.computers.linux,comp.os.linux.networking,comp.os.linux.setup x-mailer: Mozilla 3.0Gold (X11; I; OSF1 V3.2 alpha)