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

* Re: Automating PPP with Chat (fwd)
       [not found] <Pine.LNX.3.91.960415154102.1727F-100000@Cheops.apana.org.au>
@ 1996-04-15  7:57 ` Matthew Geier
  1996-04-15  8:22   ` Matthew Geier
  0 siblings, 1 reply; 3+ messages in thread
From: Matthew Geier @ 1996-04-15  7:57 UTC (permalink / raw)


Make sure your modem is set to reset on loss of DTR (&D something, check
the manual). This will make sure the modem starts in a sane state.

 Infact put all the settings in, at&w to save them in NV ram and init
the modem in the chat script with simply 'atz'.

-- 
Matthew Geier,                 | Australian Public Access Network Association
matthew@sleeper.apana.org.au   | (+61) 2 588 4615 (Data) 587 9773   (voice)
matthew@law.usyd.edu.au        | An APANA Sydney hub.    018 977356 (mobile)

    'There are worlds out there where the sky is burning, the seas
sleep, and the rivers dream; people made of smoke, and cities made of
song.  Somewhere there's danger, somewhere there's injustice, and somewhere
else the tea is getting cold.  Come on Ace, we've got work to do!'
                (Last words of the last Dr Who)

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

* Re: Automating PPP with Chat (fwd)
  1996-04-15  7:57 ` Automating PPP with Chat (fwd) Matthew Geier
@ 1996-04-15  8:22   ` Matthew Geier
  0 siblings, 0 replies; 3+ messages in thread
From: Matthew Geier @ 1996-04-15  8:22 UTC (permalink / raw)


Opps. Some how went to the wrong address.

-- 
Matthew Geier,                 | Australian Public Access Network Association
matthew@sleeper.apana.org.au   | (+61) 2 588 4615 (Data) 587 9773   (voice)
matthew@law.usyd.edu.au        | An APANA Sydney hub.    018 977356 (mobile)

    'There are worlds out there where the sky is burning, the seas
sleep, and the rivers dream; people made of smoke, and cities made of
song.  Somewhere there's danger, somewhere there's injustice, and somewhere
else the tea is getting cold.  Come on Ace, we've got work to do!'
                (Last words of the last Dr Who)

^ 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