[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron job not executing



On Sat, May 5, 2012 at 6:26 PM, Tony Baldwin <tony@tonybaldwin.org> wrote:
> I've got a little cron job,
> just trying to fire off a script (see http://tonyb.us/mattbot )
> and it's not firing.
>
> I have other jobs on the same crontab that do.
> When I run the script manually, it runs.

[...]

> Probably something really obvious I'm overlooking, but the more I look,
> the less I see why there's a problem.

In my experience with cron jobs it's either permissions or path.
Permissions you said are OK, so I'd put a PATH statement in your
script (I notice it has none), which includes a path to your script
and any programs it calls. Cron jobs operate with a very lean
environment, so the fact it works when you run it from the command
line is no guarantee it will run as a cron job.

Patrick


Reply to: