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

Re: job in crontab not running



On Tue, Nov 8, 2011 at 10:25, Camaleón <noelamac@gmail.com> wrote:

> Do a "grep -i cron /var/log/syslog" and check for the output.

# grep -i cron /var/log/syslog
Nov  8 07:17:01 bull /USR/SBIN/CRON[6222]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 07:49:05 bull crontab[6280]: (laltest) LIST (laltest)
Nov  8 08:17:01 bull /USR/SBIN/CRON[6312]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 09:17:01 bull /USR/SBIN/CRON[6370]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 10:17:01 bull /USR/SBIN/CRON[6428]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
#

and then the previous:

# grep -i cron /var/log/syslog.1
Nov  7 07:17:01 bull /USR/SBIN/CRON[32585]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 08:17:01 bull /USR/SBIN/CRON[32643]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 09:17:01 bull /USR/SBIN/CRON[32701]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 10:17:01 bull /USR/SBIN/CRON[32759]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 10:37:54 bull crontab[338]: (root) BEGIN EDIT (laltest)
Nov  7 10:38:03 bull crontab[338]: (root) REPLACE (laltest)
Nov  7 10:38:03 bull crontab[338]: (root) END EDIT (laltest)
Nov  7 10:39:01 bull /usr/sbin/cron[1123]: (laltest) ORPHAN (no passwd entry)
Nov  7 11:17:01 bull /USR/SBIN/CRON[612]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 12:17:01 bull /USR/SBIN/CRON[676]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 13:17:01 bull /USR/SBIN/CRON[988]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 14:17:01 bull /USR/SBIN/CRON[1051]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 15:17:01 bull /USR/SBIN/CRON[1111]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 16:17:01 bull /USR/SBIN/CRON[1170]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 17:17:01 bull /USR/SBIN/CRON[1228]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 18:17:01 bull /USR/SBIN/CRON[1295]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 19:17:01 bull /USR/SBIN/CRON[2468]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 20:17:01 bull /USR/SBIN/CRON[2526]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 21:17:01 bull /USR/SBIN/CRON[2584]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 22:17:01 bull /USR/SBIN/CRON[2642]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  7 23:17:01 bull /USR/SBIN/CRON[2700]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 00:17:01 bull /USR/SBIN/CRON[2764]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 01:17:01 bull /USR/SBIN/CRON[9327]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 02:17:01 bull /USR/SBIN/CRON[27899]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 03:17:01 bull /USR/SBIN/CRON[22937]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 04:00:01 bull /USR/SBIN/CRON[28318]: (root) CMD (test -x
/usr/sbin/cron-apt && /usr/sbin/cron-apt)
Nov  8 04:17:01 bull /USR/SBIN/CRON[30897]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 05:17:01 bull /USR/SBIN/CRON[5973]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 06:17:01 bull /USR/SBIN/CRON[6031]: (root) CMD (   cd / &&
run-parts --report /etc/cron.hourly)
Nov  8 06:25:01 bull /USR/SBIN/CRON[6043]: (root) CMD (test -x
/usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
#

> I don't know why is failing, though the most commom error is not taking
> into account environmental variables that you have to may have to
> manually set for shell, paths, etc...
>
> You can append "2>&1 >> /var/log/nightly-git.log" to get the output
> logged to a file.

That's I'll see if that gives any more information.

Cheers

Adam


Reply to: