Re: cron job not executing



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



Relevant Pages

  • Re: Netcat question
    ... Also, I apologize since I think you might have provided this already, but can we see the virtual device script? ... Maybe a quick & dirty hack fix is to have the virtual device script always append something unobtrusive to the collected print data for no other reason than to garuntee that the print jobs are always at least a few bytes. ... It uses a cheap-o single port print server that snaps onto the centronics plug just like that netgear ps101. ...
    (comp.unix.sco.misc)
  • Re: cron
    ... directories for system cron jobs. ... The reason I have computers is to do my jobs, ... Does any of this help you write a script that would ...
    (Fedora)
  • Re: Netcat question
    ... If you write the virtual device script to simply throw out all output from ... than to garuntee that the print jobs are always at least a few bytes. ... It uses a cheap-o single port print server that snaps onto the centronics ...
    (comp.unix.sco.misc)
  • Re: Biztalk 2006 with SQL-Express - Gert
    ... This is the link for the list of BizTalk 2006 Maintenance Jobs ... Below I provide the details of the execution script with the interval. ... Interval: 1 Minute / Recurring ...
    (microsoft.public.biztalk.general)
  • Re: Plattform independent queuing of computations
    ... The idea ist to put the computation jobs into a database which is read ... The external task uses the database as a queue ... website the socket will be closed when the script is finished and the ... And if the rest of the code doesn't have problems with loops, you can set the execution time longer and memory larger. ...
    (comp.lang.php)