Hi All,
ftp_site=ftp.test.co.uk

time parallel --eta  -j+0 ' mkdir {2}; cd {2}; mkdir {1}; cd {1};  wget  
ftp://$ftp_site/{1}/*.zip ; cd ../' ::: $(seq -w 001 004) ::: $(seq -w 11 11) 
but if I specify  the ftp_site variable with its ftp site name as:
time parallel --eta  -j+0 ' mkdir {2}; cd {2}; mkdir {1}; cd {1};  wget  
ftp://ftp.test.co.uk/{1}/*.zip ; cd ../' ::: $(seq -w 001 004) ::: $(seq -w 11 
11) 
This seems to work (creates first a dir 11 and then creates subdirectories 001 
002 003 004 and wget download the respective files to each of the 
subdirectories.).

/Yacob


--- On Tue, 19/2/13, yacob sen <[email protected]> wrote:

From: yacob sen <[email protected]>
Subject: Why this should not work ?
To: "Ole Tange" <[email protected]>, "[email protected]" <[email protected]>
Date: Tuesday, 19 February, 2013, 0:03


Hi ALL,
I have the following command:
for i in `seq -w 2010 2010`
   do   mkdir $i   cd $i
     file=test.$i      dirr=test
  parallel -j+0 'mkdir {}; cd ${}  wget 
${prot}://${ftp_site}/$file/{}/${dirr}/*.zip ; cd ../'  ::: $(seq -w 01 365)
done
Basically what I want is , first create a directory 001 and cd to 001 and then 
apply wget command to bring those files that should belong to day 001 only. 
Again  create a directory for 002 and cd to 002 and wget from an ftp server 
only those files that belong to day 002 and so on.
Why the above parallel command is not working ?
RegardsYacob

Reply via email to