Thanks Clifford,
I tried to insert your script in ifup-ppp but I did not know how to pass
the $NUMBER variable to my chat file which is the standard file generated
by RH6.0 linuxconf called chat-ppp0 located in
etc/sysconfig/network-scripts. Referring to the man chat page do I use chat
-T or chat -E or both ?. The existing relevant portion of the pppd command
in ifup-ppp reads
connect "usr/sbin/chat $chatdbg -f $CHATSCRIPT"
where
$CHATSCRIPT=/etc/sysconfig/network-scripts/chat-$DEVNAME"
where
$DEVNAME=ppp0
I also managed to find a standard script called redialer written by Al
Longyear under /usr/docs/ppp-2.3.10 which redials the same number or
multiple numbers as many times as you need. The problem with this is how to
manually stop it dialing.
Regards
Rajiv
At 01:35 PM 11/23/99 -0600, you wrote:
On Tue, 23 Nov 1999, Rajiv Ghai wrote:
|My isp has more than one dial-up number (infact around 20 phone numbers
|which are mostly busy).Can I configure pppd to dial them automatically in
|sequence until a connection is established. I am using a standalone linux
|box running RH 6.0 using demand dialing. Is there a standard Chat or other
|script for this problem ?
Don't know of any standard script, but here's a shell script that might get
you started:
while read number; do
export NUMBER=$number
**pppd command with chat script to dial $NUMBER**
code=$? # Get the return code for pppd
if [ "$code" = "0" ]; then break; fi
sleep 10 # May not be needed
done /etc/ppp/isp-numbers
The phone numbers are put in the file /etc/ppp/isp-numbers:
xxx-
xxx-
xxx-
.
.
.
---
Clifford Kite
-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [EMAIL PROTECTED]