From: Deya Motawie <deya@Cheops.apana.org.au>
Subject: Automating PPP with Chat (fwd)
Date: Mon, 15 Apr 1996 15:42:57 +1000 (EST) [thread overview]
Message-ID: <135fe8da97d948ef5beaa0e95e7c8425.axp-list@archive.invalid> (raw)
Hi all,
I sent a previous message regarding ppp not working with chap , but I just
solved the problem . My problem now is the following : I am trying to
automate pppd to connect whenever the connection fails , so I added a line in
the inittab file, and a script that calls pppd , with chat option for a file
that has all the commands for init. the modem and calling the number . All
that works fine , and as soon as it fails , it reconnects again . The problem
is when the server is shutdown , and started up again, then the script
doesn't work as it cannot init the modem . So the problem is in chat . the
onlyl way around it is to manually comment the ppp line in inittab, run
minicom , then exit from minicom ,uncomment the ppp line again , and every
thing works fine again. I tried to copy all the init strings in minicom
config options , but still it doesn't work for the first time after the modem
or the server shutdown . An example of the ppp script and the chat script
follows :
/usr/lib/ppp/pppd connect "/usr/lib/ppp/chat -v -t 60 -f /usr/lib/ppp/mychat"
/d ev/cua2 115200 -detach crtscts modem defaultroute debug
and the mychat (chat ) script is :
ABORT BUSY ABORT 'NO CARRIER' '' ~^MATS7=45S0=0L1V1X4&c1E1Q0R115^M OK
~^MATZ^M~ OK ATQ0E1 OK ATDT5884410 CONNECT
Is there anything wrong here ? any help would be appreciated .
TIA,
Deya
-------------------------------------------------------------------------
Deya Motawie Tel(O): (015) 414130
School Of Computing Science. Fax : (02) 5645341
UTS - Msc Researcher AI Lab. Email : Dhmotawi@Socs.uts.edu.au
University Of Technology, Sydney P.O. Box 123, Broadway NSW 2007
APANA System Administrator
(02 ) 692-0151 (Vox) Email : Deya@Pyramids.apana.org.au
-------------------------------------------------------------------------
next reply other threads:[~1996-04-15 5:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-15 5:42 Deya Motawie [this message]
[not found] <Pine.LNX.3.91.960415154102.1727F-100000@Cheops.apana.org.au>
1996-04-15 7:57 ` Automating PPP with Chat (fwd) Matthew Geier
1996-04-15 8:22 ` Matthew Geier
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox