Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] script fails as cron job
- Date: Wed, 26 Nov 2008 12:27:04 +0900
- From: Charles Muller <cmuller-lst@example.com>
- Subject: Re: [tlug] script fails as cron job
- References: <20081124.103608.193698881.cmuller-lst@jj.em-net.ne.jp> <20081124080448.GA2212@fluxcoil.net>
- User-agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018)
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>
- References:
- [tlug] script fails as cron job
- From: Charles Muller
- Re: [tlug] script fails as cron job
- From: Christian Horn
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Trouble with external USB hard disk: GUI admin tool intrigue: Give image URL: (Really!)
- Next by Date: Re: [tlug] Looking for a distribution to replace Ubuntu
- Previous by thread: Re: [tlug] script fails as cron job
- Next by thread: [tlug] Looking for a distribution to replace Ubuntu
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links