[H-GEN] crontab question

Timothy Hitchens [HiTCHO Group] tim at hitcho.com.au
Sun Dec 12 21:38:43 EST 2004




On 13/12/04 12:33 PM, "Anthony Irwin" <anthonyi at toolboxsoftware.com.au>
wrote:

> [ Humbug *General* list - semi-serious discussions about Humbug and     ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
> 
> 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.

Why don't you just use persistent connection from ppp config?

 
-- 

Timothy [HiTCHO] Hitchens









More information about the General mailing list