[H-GEN] crontab question
Anthony Irwin
anthonyi at toolboxsoftware.com.au
Sun Dec 12 21:33:40 EST 2004
Hi guys,
I have set up a simple script to check if the Internet is running and
connect to the Internet if it is not. The problem is if I run the script
from a cron job it doesn't work, running it from the shell however works
as I would expect
Below is the line in the root crontab
0,30 * * * * /root/scripts/checkpppstatus.sh
Below is the script
#!/bin/bash
/sbin/ifconfig|/bin/grep ppp0 || /usr/bin/pon
The computer is running on a Debian Woody system. Any suggestions would
be greatly appreciated.
--
Kind Regards,
Anthony Irwin
Octal8 Pty Ltd (formerly Toolbox Software)
-----------------------
Sales: 1800 00 99 70
Support: 1300 13 03 05
-----------------------
Tel (07) 3875 2875
Fax (07) 3875 1177
Great time and money saving tools (For the Building Industry)
<<http://www.octal8.com.au>>
International Ph. +61 7 3875 2875
International Fax. +61 7 3875 1177
Postal Address:
PO Box 395
Salisbury QLD 4107
Australia
Physical Address:
172 Evans Road
Salisbury QLD 4107
Australia
More information about the General
mailing list