second, how have you edited the crontab file ? crontab -e or manually.
also, have you tried running the script by placing it in the cron hourly dir, and modifying the cron hourly line to run every 5 mins
*/5 * * * * /usr/sbin/run-cron /etc/cron.hourly
also check
less /var/spool/cron/omri or whatever users name is. see if its scheduled.
]]>Did you try with
*/5 * * * * /usr/bin/search-nforce nforce
? I noticed cron doesn't like relative filenames. If your script contains commands, make sure the full path is included aswell.
Still isn't working.
Edit: Apparently I have a syntax error;
[omri@Dean ~]$ crontab -l
*/5 * * * * /usr/bin/search-nforce nforce >>/home/omri/cron/log 2>&1
[omri@Dean ~]$ cat /home/omri/cron/log
Syntax error
I'm completely lost here, what the hell am I doing wrong?
]]>*/5 * * * * /usr/bin/search-nforce nforce
? I noticed cron doesn't like relative filenames. If your script contains commands, make sure the full path is included aswell.
]]>[omri@Dean ~]$ crontab -l
*/5 * * * * "search-nforce nforce"
The additional parameter I pass to my script tells it to look for "nforce", instead of the default "GTA" inside the RSS feed, so that it's bound to succeed. I've also set it to run every 5 minutes for now (or so I've tried) so I can see if it works without waiting too long.
It just doesn't seem to do anything.
Please help!
]]>