🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #56853

PPP script not working.

#56853
From: Richard Ashton
Date: Wed, 11 Dec 1996 00:00
53 lines
2679 bytes
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.
Technical Details
Message-ID: <32AEA66C.3ABD@ans.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 102983,e862ba1154d7d0d0,start
X-Google-Attributes: gid102983,public
X-Google-Thread: 10669a,e862ba1154d7d0d0,start
X-Google-Attributes: gid10669a,public
X-Google-Thread: f9b51,e862ba1154d7d0d0,start
X-Google-Attributes: gidf9b51,public
From: Richard Ashton <ashtons@ans.com.au>
Subject: PPP script not working.
Date: 1996/12/11
Message-ID: <32AEA66C.3ABD@ans.com.au>
X-Deja-AN: 203487613
content-type: text/plain; charset=us-ascii
organization: At Home
mime-version: 1.0
reply-to: " ashtons@ans.com.au" <"Richard Ashton">
newsgroups: aus.computers.linux,comp.os.linux.networking,comp.os.linux.setup
x-mailer: Mozilla 3.0 (Win95; I)