parallel
[Top][All Lists]
Advanced

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

parallel wget in perl


From: yacob sen
Subject: parallel wget in perl
Date: Thu, 31 Jan 2013 08:22:41 -0800 (PST)


Hi ALL,

I am trying to fetch data from an ftp server by Parallelizing wget  inside a perl script.

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


Regards
Yacob


reply via email to

[Prev in Thread] Current Thread [Next in Thread]