Re: cron job not running

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



  

________________________________
 >From: Tim Dunphy <bluethundr@xxxxxxxxx>
>To: CentOS mailing list <centos@xxxxxxxxxx> 
>Sent: Sunday, March 4, 2012 8:25 PM
>Subject:  cron job not running
 >
>hello list,
>
>I am attempting to backup a centos 5.4 (x86_64) server running mysql with a cron job. Here's how the cron job looks:
>
> [root@cloud:/home/bluethundr/backupdb] #crontab -l
> * 3 * * * /usr/bin/mysqldump jfwiki >
> /home/bluethundr/backupdb/wiki-$(date +%Y%m%d).sql
>
> However if I run the command from the command line it seems to work fine.

===


Something is probably different in your environment vs cron environment.
Make a cronjob such as:

* * * * * env > /tmp/environment.txt

Let it run for a minute to get the values, then remove the cronjob.

Compare it to the results of  'env' on the command line.  Probably a path or some other variable is missing.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux