On Wed, 7 Nov 2001, David Fitch wrote:
> what do people use these days to keep their modem permanently
> connected? diald, wvdial with the "auto reconnect" option or
> just pppd's "persist" option? or something else?
I just use my script, and keep it looping until I break it. Of course,
this ties up a VTY, so I add an extra one into the inittab just for
running PPP from.
> I want a way to limit redial attempts though, something like:
> max redials of X within Y mins/hours so if there's a problem
> at the other end and I get kicked off after 5 mins I don't
> end up redialing 288 times in a day (at a cost of $57 in calls).
Adding an appropriate counter to the script will work. Just add an
incrementing {or decrementing} counter to your loop, and initalise the
counter to an appropriate value.
I.E. If you want 10 retries, set the variable COUNTER=0, then before you
run your dial script, do something like COUNTER=COUNTER+1 and at the end
of your script do something like if COUNTER=10 break
The exact scripting will depend on the shell your script is written in.
DaZZa
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug