> When pppd is started with a chat script, chat exits with a return
> value which can refer to an ABORT string in the chat script.
> 
> I'm looking for a way to find if the remote number was busy when
> pppd tried to connect.  This could be a way, but there seems no way
> to access the value returned by chat.

If you take a look the man page for chat, you will find that it 
returns an ordinal return value based on the line number of the ABORT 
text. (+4 methinks)

You can set the connect script for diald to a shell script that calls
chat. The shell script can interpret the return value from chat and
make decisions based on it. (for bash use $? to get the return value)

My script uses this to re-dial on a dial failure upto 10 times (Yes my
ISP can be that crap)

There is no reason why this can't dial a different number.

Note: It 'll have to be to the same ISP if you declare the local and 
remote addresses at diald's startup, or the routing will be wrong.

J.

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

Reply via email to