[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parallel wget in perl
From: |
Ole Tange |
Subject: |
Re: parallel wget in perl |
Date: |
Mon, 4 Feb 2013 00:29:12 +0100 |
On Thu, Jan 31, 2013 at 5:22 PM, yacob sen <yacob_123@yahoo.com> wrote:
>
> Here is what I have tried (the snippet of the perl script):
>
> my $year= '2013';
> my $day='01'
> @teams =( 'aa', 'bb', 'cc');
>
> There are as an example three files in the ftp server of the format:
>
> aa01.txt
> bb01.txt
> cc01.tx
>
> which I want to download.
>
> I have tried the following:
>
> system " echo @teams | parallel --eta -j+0 wget
> ftp://xxx.xx.xx/pub/${year}/{}${day}.txt";
>
> but wget tried to fetch "aa bb cc" as one file:
>
> ftp://xxx.xx.xx/pub/2013/aa%bb%cc01.txt
> => `aa bb cc01.txt'
> No such file `aa bb cc01.txt'.
system "parallel --eta -j+0 wget
ftp://xxx.xx.xx/pub/${year}/{}${day}.txt ::: @teams";
/Ole
- Re: parallel wget in perl,
Ole Tange <=