Subject: redial on busy
        Date: Wed, Jul 28, 1999 at 12:18:24PM +0200

In reply to:Nerijus

Quoting Nerijus([EMAIL PROTECTED]):
> How to automatically redial on busy and how to
> cycle through different phone numbers until I get
> a connection? What is better to use in this case -
> chat or dip?
> 

This might help you write a script to do it.
This is just a short section of the script, of course

#!/bin/sh
# Get ppp link up

# Check to see if PPP Link is up
if [ -e /var/run/ppp0.pid ] ; then
# link is already up
  let link=1
else
  let link=0
fi
until [ -e /var/run/ppp0.pid ]
  # link isn't up, so get it there
do
  start_up     # Run pon or ppp-on or whatever you use
  sleep 5
done
case "$program_to_run" in
  M) mail;;
  N) news;;
  W) web;;
esac
if [ $link -eq 0 ] ; then
  ppp-off
fi
exit 0

HTH, YMMV, HAND


-- 
Disclaimer: Any errors in spelling, tact, or fact are transmission
errors.
_______________________________________________________
Wayne T. Topa <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to