
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [tlug] script fails as cron job
On Mon, Nov 24, 2008 at 10:36:08AM +0900, Charles Muller wrote:
>
> It works fine, but when I run it on cron.daily, although the files
> download, nothing gets written to the target list file. If I try it
> 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
As already noted:
- redirect stdout to something usefull 2>/path/file
- use full path to rsync and to public_html
- quote 'path/public_html/ddb/pcache/4*.html'
- maybe provide ssh the private-key you want to use;
/path/rsync -arve 'ssh -i /home/user/.ssh/id_rsa' acmuller@example.com ...
Christian
Home |
Main Index |
Thread Index