I need to set a script to run every 4 hours.
I have it like this at the moment:
* */4 * * * /path/to/script
I am not sure about minutes - should it be '0' or '*' ? Is the rest of it OK?
Im trying to run script A which requires path /sbin.
I have a crontab entry to run script A every 10 minutes.
Script A is executed fine by cron, but because script A requires /sbin in its path it fails to run.
My situation is script A get overwritten from time to time so I can't modify script A to set path in there.
I've got a weird problem with cron not running my flexget task. Basically, I've told it to run a script every hour (0 * * * * /path/to/script). This script calls "flexget --cron", and then logs a success to a log file. Calling the script manually works fine, however nothing happens when cron tries to run it.
Sometimes cron has a limited $PATH when compared to other things. Sometimes, it can be fixed by putting the full path to the script, and, in the script, the full path to each command the script runs. [by scottro]