From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <135fe8da97d948ef5beaa0e95e7c8425.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9604150052.AA17162@reef.cs.jcu.edu.au> Date: Mon, 15 Apr 1996 15:42:57 +1000 (EST) From: Deya Motawie Subject: Automating PPP with Chat (fwd) 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 -------------------------------------------------------------------------