[H-GEN] crontab question
Robert Stanford
rob at rotapile.com
Wed Dec 15 18:05:40 EST 2004
Benjamin Carlyle wrote:
> [ Humbug *General* list - semi-serious discussions about Humbug and ]
> [ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
>
>
>>Anthony Irwin wrote:
>>
>>>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
Is the last line in your crontab empty?
Robbie
More information about the General
mailing list