Results 1 to 10 of 13
I am attempting to run the script /home/kevin/bin/getmyemailnow every 10 minutes, i have made the following entry into my /etc/crontab on my gentoo system
*/10 * * * * kevin ...
- 09-26-2004 #1
crontab
I am attempting to run the script /home/kevin/bin/getmyemailnow every 10 minutes, i have made the following entry into my /etc/crontab on my gentoo system
*/10 * * * * kevin /home/kevin/bin/getmyemailnow
but it doesn't seem to run, im sure im missing some stupid permissons thing, but i can't seem to find evidence of any problems in my system logs (but i could have easily missed something) Any ideas?
- 09-27-2004 #2Linux User
- Join Date
- Aug 2003
- Posts
- 289
do you have the service running? i always forget this.. .
Registered User #345074
- 09-27-2004 #3
- 09-28-2004 #4Linux Guru
- Join Date
- Mar 2003
- Location
- Wisconsin
- Posts
- 1,907
qub333,
A couple of things. First, I think you have it set to run every day at hour ten (10:00 am). I thought the syntax was minute hour. I could be wrong about that, and maybe that's what the */10 is. Why not just use 10,20,30,40,50 * * * * ? Also, you have Kevin in there before your command and I don't get why. Will it work if you take that out? One more thing... Are you in cron.allow and not in cron.deny?
Cron has always been like 50x more difficult then it needs to be.
JeremyRegistered Linux user #346571
"All The Dude ever wanted was his rug back" - The Dude
- 09-28-2004 #5
- 09-28-2004 #6Linux Guru
- Join Date
- Mar 2003
- Location
- Wisconsin
- Posts
- 1,907
Oops, I edited this after you saw it.
JeremyRegistered Linux user #346571
"All The Dude ever wanted was his rug back" - The Dude
- 09-28-2004 #7
The time syntax is correct. */10 will run every ten minutes. You have to specify the user that the job is to run under...this is his second field. Everything looks good from here...Can you run the file normally from a shell?
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 09-28-2004 #8
- 09-28-2004 #9
Did you check your /etc/cron.{allow,deny} ? Can you run other cronjobs as kevin?
"Time is an illusion. Lunchtime, doubly so."
~Douglas Adams, The Hitchhiker's Guide to the Galaxy
- 09-28-2004 #10Just Joined!
- Join Date
- Jun 2004
- Location
- London, UK
- Posts
- 53
Did crontab read the file after you changed it?
For normal user crontabs I would recommend using the 'crontab -e' command to edit it and not the manual way.
Btw, for those of you not familiar with vi just do a 'export EDITOR=<your-favorit-editor>" before running "crontab -e".


Reply With Quote
