Subject: Re: PPP/Chat redial capability?
To: None <current-users@NetBSD.ORG>
From: Matthias Scheler <tron@lyssa.owl.de>
List: current-users
Date: 01/16/1998 00:32:00
In article <Pine.NEB.3.96.980115141746.271A-100000@battle.war.com>,
tooleym@douglas.bc.ca writes:
> Chat.c returns a different value for each different type of abort string
> it receives--pppd doesn't seem to care, however (unfortunate). I've
> checked and re-checked man pages, pppd, chat, etc, but no mention of
> "BUSY" signal triggering a redial is to be found.
You can use a script based on "chat" like this one:
#!/bin/csh -f
while (1)
foreach NUMBER (007 4711)
chat\
ABORT BUSY\
ABORT 'NO CARRIER'\
ABORT 'NO DIALTONE'\
'' ATZ\
OK ATDT${NUMBER}\
CONNECT ''\
ogin: ppbilly\
sword: ruletheworld
if ($status != 4 && $status != 5) exit $status
sleep 1
end
sleep 60
end
--
Matthias Scheler http://home.owl.de/~tron/