Mailing List Archive


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

Re: [tlug] script fails as cron job



> with "run parts" it also works OK, but when it is run as a regular
> cron.daily job, the same problem occurs. Can anyone suggest a cause?
>
> rsync -uvptl -e ssh
> acmuller@example.com:public_html/ddb/pcache/4*.html
> /mnt/win_d/docs/public_html/ddb/pcache/  >
> /mnt/win_d/docs/pcache-updated4.txt

If not in a subshell, you need to give absolute path for rsync & ssh 
executables.
You can also redirect stderr 2> to know what is failing.

/usr/bin/rsync -uvptl -e /usr/bin/ssh 
acmuller@example.com:"public_html/ddb/pcache/4*.html"
/mnt/win_d/docs/public_html/ddb/pcache/  2>&1 >
/mnt/win_d/docs/pcache-updated4.txt


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links