LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 11-22-2003, 11:54 AM   #1
MadCactus
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Rep: Reputation: 30
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?
 
Old 11-22-2003, 11:55 AM   #2
MadCactus
Member
 
Registered: Jul 2003
Distribution: Slackware 9.1
Posts: 195

Original Poster
Rep: Reputation: 30
Oops: i used crontab -e to create it...
 
Old 09-09-2006, 11:31 AM   #3
DrAxeman
Member
 
Registered: Jun 2004
Location: State of Confusion
Distribution: My other OS is your Solaris box.
Posts: 84

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
simple cron job: not working Robert0380 Linux - Software 3 06-24-2008 04:45 AM
GPG cron job not working michredhat Linux - Software 1 12-07-2004 10:27 PM
Cron not working robbiemorgan Linux - Newbie 6 09-16-2004 10:47 AM
Mysql Cron Script using select not working fallen Linux - General 2 11-04-2003 07:37 AM
Cron/at not working Wynd Linux - General 1 09-11-2003 11:22 PM


All times are GMT -5. The time now is 01:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration