Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Automating PPP with Chat (fwd)
@ 1996-04-15  5:42 Deya Motawie
  0 siblings, 0 replies; 3+ messages in thread
From: Deya Motawie @ 1996-04-15  5:42 UTC (permalink / 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
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-04-15  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
1996-04-15  5:42 Deya Motawie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox