On Mon, 9 Nov 1998, David Shochat wrote:

> Why not put the retry logic in the same wrapper script with the
> invocation of chat. That way, there's no need for passing data in files.
> The chat returned value will just be in a shell variable in your script.

Hmm...  I'd probably need a specific example...you would appear to
have me running pppd again (and invoking the chat wrapper) from
within the chat wrapper.

I did use a chat wrapper (actually another run of the controlling
perl script, which runs as a chat wrapper if the IP-number argument
is replaced with "-") and used a fifo to pass the chat exit code and
the new pppd pid back to the first instance of the script.

This had the unplanned bonus that the script has to wait to read the
fifo for just as long as it takes to connect, i.e. it doesn't
prematurely start pinging to verify the link.

Thanks to all who replied.

--Mike


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

Reply via email to