Re: cronjob not running

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



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'.

+1

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.

K
-- 
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

_______________________________________________
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