Re: curl -g and crontab



Thank you for all your replies. In fact, the crontab is
"01 09 * * * /home/dj/yixin.sh"
I checked the cron log files at /var/log/cron. No problems there as it just
shows the cron files under root account.
Should I write the cron files under root account instead of just under 'dj'
account. The problems is that yixin.sh runs and creates folder every day but
just cannot download files. If we run yixin.sh at 'dj' manually, everything
is ok. And I can run curl without putting path before it. Anyway I will put
the full path before curl this time. I will let you whether it will work
tomorrow.

yixin



On 2/10/06, Yixin Luo <luoyixin@xxxxxxxxx> wrote:

Hello.
We put the a following script file - yixin.sh in the crontab. After
crontab running, new folders have been build but no files downloaded in
those folders. If we run the script manually, the files could be downloaded
in these folders.

yixin.sh
"mkdir /home/dj/share/yixin/`date +%Y%m%d`
cd /home/dj/share/yixin/`date +%Y%m%d`
export nb=`date +%Y%m%d`
export URL="ftp://starfish.mar.dfo-mpo.gc.ca/pub/ocean/btoulany/GoMOOS/products
"
curl -g $URL/run-$nb\00.tar.gz -o run-$nb\00.tar.gz
tar -zxvf run-$nb\00.tar.gz
rm *tar.gz -rf
"

Here is our crontab file.
01 09 * * * /home/wam/yixin.sh

Thanks in advance.

yixin


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • RE: crond not found
    ... Crontabs does not contain the cron daemon: ... Group: System Environment/Base Source RPM: ... The crontabs package contains root crontab files. ...
    (RedHat)
  • Re: crontab
    ... >>I have scheduled a task by configuring crontab. ... >>and the mail contents are simply stating the successfull execution of ... >>the cron job. ... If MAILTO is ...
    (comp.os.linux.development.system)
  • Re: Race between cron and crontab
    ... This means that cron can ... performed within a single second and cron wakes up to scan the spool directory ... Specifically, when replacing a crontab, crontabfirst creates a temporary ... If you really want cron to have sub-second granularity I don't see how ...
    (freebsd-current)
  • Re:crontab bug?
    ... When I edit my crontab and then save it, ... needing to restart cron for every new crontab isnt normal, ... so it may be a bug, or you are doing it wrong. ... you file a bug on cron (see debian website for that) ...
    (Debian-User)
  • Re: cron usage and squid daily log rotate
    ... This is all documented very nicely in the cron manpage: ... Cron searches /var/spool/cron for crontab files which are named after ... The logrotate script say to move the squid log files out of the way ... # This script asks squid to rotate its logs on its own. ...
    (RedHat)