Re: [SLUG] cron problems

From: Paul M Foster (paulf@quillandmouse.com)
Date: Thu May 10 2001 - 22:53:44 EDT


On Fri, May 11, 2001 at 05:41:56AM -0400, Douglas Alan Hartman wrote:

> OK This is my first post. I use the Red Hat bible for mose problems. But I
> cannot get cron to work. Arggg! I run RedHat 7.0 kernel 2.2. Here is my cron
> file. There is no cron.allow or deny files in /etc/. The user is bigwig.
>
> */30 * * * * bigwig /var/www/html/stats/stats -v
> */2 * * * * bigwig /var/www/html/stats/pquery -l -s blah blah blah
>
> Both these progams work fine from command line but not in cron. I had
> instructions to add the crontab as this "0,30 * * * * user /valid/paht/name"
> but I also noticed that the default dir was home/httpd which is from older
> versions. The */30 I got from existing cron files on the Computer whic is
> set to run every 30 mins. I have tried it both ways and nodda.
> I wish I had some more info to give you but I think that's all I am supposed
> to need.
>

I'm assuming you're using the crontab program to edit your crontab
files.

Do this:

crontab -e -u bigwig

and insert a line like:

MAILTO=bigwig

at the beginning of your crontab file, so it will email you the results.
That might give you more info about why the failure. At a guess, I'd say
this has something to do with permissions or the limited environment
available to cron as user bigwig.

Paul



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:31:52 EDT