[CentOS] cronjob not running

Thu Jan 24 00:11:42 UTC 2013
Kahlil Hodgson <kahlil.hodgson at dealmax.com.au>

On 23/01/13 18:41, Cliff Pratt wrote:
> cron does not have the same environment as the user logged in as root.
> Specifically, it doesn't have the same 'PATH'.


It may also have a different selinux context.  I recently discovered a 
logwatch setup that worked fine on C5, but parts of it were silently 
failing on C6. Running logwatch from cron was producing different output 
to running it on the command line.  It took a while  before it occurred 
to me to check selinux.

Kahlil (Kal) Hodgson                       GPG: C9A02289
Head of Technology                         (m) +61 (0) 4 2573 0382
DealMax Pty Ltd                            (w) +61 (0) 3 9008 5281

Suite 1415
401 Docklands Drive
Docklands VIC 3008 Australia

"All parts should go together without forcing.  You must remember that
the parts you are reassembling were disassembled by you.  Therefore,
if you can't get them together again, there must be a reason.  By all
means, do not use a hammer."  -- IBM maintenance manual, 1925