parallel
[Top][All Lists]
Advanced

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

Re: Why this should not work ?


From: yacob sen
Subject: Re: Why this should not work ?
Date: Tue, 19 Feb 2013 07:13:33 -0800 (PST)

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 <address@hidden> wrote:

From: yacob sen <address@hidden>
Subject: Why this should not work ?
To: "Ole Tange" <address@hidden>, "address@hidden" <address@hidden>
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 ?

Regards
Yacob

reply via email to

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