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