LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Cron not seeming to be working? (https://www.linuxquestions.org/questions/red-hat-31/cron-not-seeming-to-be-working-118882/)

MadCactus 11-22-2003 11:54 AM

Cron not seeming to be working?
 
Hi

Crond is started and won't execute my crontab...

I used cron -e to create a new one for my own login to execute this little prog I wrote:

Code:

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.1344 installed on Sat Nov 22 17:43:28 2003)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
SHELL=/bin/bash
PATH=/bin:/usr/bin:/usr/local/bin
MAILTO=Andy
HOME=/home/Andy

45 * * * * /home/Andy/ogl/polyhedrons/platonic5/gourpoly

But it just ain't havin' it. According to the RH manual user crontabs have the same format as /etc/crontab, but according to the crontab manual the format is different...

I tried it both ways but no success...

Anyone know what i'm doing wrong?

MadCactus 11-22-2003 11:55 AM

Oops: i used crontab -e to create it...

DrAxeman 09-09-2006 11:31 AM

I don't beleive you can use variables at the top of the file. Crontab only allows commands.

remove the :
SHELL=/bin/bash
PATH=/bin:/usr/bin:/usr/local/bin
MAILTO=Andy
HOME=/home/Andy

and put it in the top of your script.


All times are GMT -5. The time now is 04:19 AM.