[CentOS] difference between cron and shell invocation.

Tue Dec 7 14:40:31 UTC 2010
Tony Molloy <tony.molloy at ul.ie>

On Tuesday 07 December 2010 14:34:33 James B. Byrne wrote:
> I have a fairly involved root cron task that I moved verbatim from
> another server. On the original server, this task ran without
> problem.  On the new server, when this task runs via cron, which I
> confirm is happening by looking in the cron log, no files are
> transferred and no error is reported.  However, if I copy cron
> command from roots crontab and paste it into a terminal session on
> the new server then the task runs to completion and the files are
> transferred.
> 
> This task involves sshfs, fuse, and rsync and employs pki
> certificates for authentication.  The fact that it works from the
> shell without alteration and yet not from cron is the issue.
> 
> Does anyone have any idea where I would start to track down what is
> going on?

Check the paths in cron. They are not necessarly the same as the paths for the 
shell.

Tony
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20101207/e37769e6/attachment-0005.html>