Re: curl -g and crontab

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

 



Yes. The curl works now. We checked the process step by step and located the
problem. The folder was created and the file was downloaded. The problem is
"tar -zxvf run-$nb\00.tar.gz" does not work and *tar.gz was removed. That's
why the folder is empty. If we run the script manually, every thing will be
ok. Any more suggestions about the tar? Is there any confliction between tar
and crontab?

-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?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux