On Tue, 5 May 1998, Benji Spencer wrote:
> I am in need of some sort of script that will look (via a cron job) from
> time to time, to see if I am still connected to the net/online. If I am
> online, it just exits, however, if it finds me logged off, I need to to log
> me back onto the internet. So how is your favorate way of doing this? I
> have tried several things, but in the end, I just end up with this in my
> /var/log/messages
>
Put this shell script in your crontab:
-------
#!/bin/sh
if [ ! -f /var/run/ppp0.pid]; then
/etc/ppp/ppp-on
fi
--------
Bye.
xxxxxx //////
xx xx ( o o )
xx xx /------------oOO-----O-----OOo------------\
xxxx | From: Iztok Polanic |
xx xx | E-mail: [EMAIL PROTECTED] |
xx xx | WWW: http://kotzi.home.ml.org |
xx xx \-----------------------------------------/
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.