Re: difference between cron and shell invocation.

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



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

_______________________________________________
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