Newbie question: Why aren't my cron jobs running?
racerx at makeworld.com
Thu Jun 14 00:16:19 UTC 2012
On 6/13/2012 6:23 PM, Walter Hurry wrote:
> On Tue, 12 Jun 2012 12:21:31 -0500, Dan Lists wrote:
>> The syntax of his crontab file is correct. Vixie cron does care about
>> leading spaces, tabs, extra spaces, or leading zeros. Earlier versions
>> of cron are much pickier about the crontab file. The cron logs show
>> that it is starting his jobs at the correct times.
>> It is far more likely that there is a problem with the scripts. A very
>> common cause of problems with scripts run from cron is that they do not
>> inherit your environment. Do the scripts run from the command line?
>> If the do, then the problem is most likely something in your environment
>> that the scripts need.
> I'm a complete idiot, and I feel embarrassed. Everything was fine, except
> that I had missed out '/bin' in the paths of the jobs.
> I had:
> which should of course have been:
> What a stupid mistake! Thanks for all the replies, but I must say sorry
> for wasting your time. Sorry!
... Damned those full path names.
More information about the freebsd-questions