Mailing List Archive


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

Re: [tlug] script fails as cron job



Christian Horn wrote:

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 ...

I did all of this, and the script now runs fine in cron.daily. Isn't it nice to have a simple one once in a while amidst the esoteric discourse (esoteric to me, that is)?


Thanks, Christian,

Chuck

--
-------------------

A. Charles Muller

University of Tokyo
Graduate School of Humanities and Sociology, Faculty of Letters
Center for Evolving Humanities
7-3-1 Hongo, Bunkyo-ku
Tokyo 113-0033, Japan

Web Site: Resources for East Asian Language and Thought
http://www.acmuller.net

<acmuller[at]jj.em-net.ne.jp>



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links