Originally Posted by uncle-c
I would like to run the "my-cron" script at 30 mins past the hour but its having nothing of it. Below is some output if it helps.
[zod@PCLOS2007 temp]$ sudo crontab -l -u zod
30 * * * * /home/zod/temp/my-cron
[ Side note: stop using sudo to run crontab commands for zod. Do it directly as zod. ]
To isolate this down to a cron issue or an issue with your script, use crontab -e
as the zod user, and make an entry:
* * * * * echo 'Hello from cron'
After a couple minutes, check mail
for zod -- you should see mail messages with 'Hello from cron' in the body.
If that doesn't work, do you have /etc/cron.allow or /etc/cron.deny files? If so, what's in 'em?