Re: cron job not executing
- From: Patrick Wiseman <pwiseman@xxxxxxxxx>
- Date: Sat, 5 May 2012 23:06:46 -0400
On Sat, May 5, 2012 at 6:26 PM, Tony Baldwin <tony@xxxxxxxxxxxxxxx> 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
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/CAJVvKsPPwiydV=tW0H_qNH+8ZaC8mGbYbqkD09_UV+wC1rxN0Q@xxxxxxxxxxxxxx
- References:
- cron job not executing
- From: Tony Baldwin
- cron job not executing
- Prev by Date: How Does One Re-run write_cd_rules
- Next by Date: Re: check a file within a certain time
- Previous by thread: Re: cron job not executing
- Next by thread: Re: cron job not executing
- Index(es):
Relevant Pages
|