Stephen M Lavelle wrote:

> i have a cron job which dials up isp at 8am each morning.
> I need a small script which can check (periodically) if the link is
> still up and if it is not then redial and reconnect.
> Any pointers/examples please?

Well, I've written a script that runs multiple Seti clients concurrently.
As part of the script, it checks to see if the PPP link is up; if not,
it brings it up then causes them to connect.  At the end, if it brought
the link up, it quiesces it.

I consider it gamma code--I've been running it for some weeks now, there are
a couple of cases where the Seti clients can muck up the log files, but the
PPP stuff is working fine.  (I haven't released it because I'd like to make
it even more robust, and I've not yet written the man page.  It makes
assumptions about the presence of a support diretory structure--not rocket
science, but.)

You could steal the PPP management code and/or logic... (And, I suppose, if
anyone wants to work through it for its original purpose, that too.)

Cheers,
-- 
        Dave Ihnat
        [EMAIL PROTECTED]


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to