[H-GEN] crontab question

Mal Beaton mal at mbeaton.id.au
Mon Dec 13 03:54:27 EST 2004


Anthony Irwin 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.
> 

care of mark suter
http://zwitterion.org/software/force-link-up/force-link-up




More information about the General mailing list