[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why this should not work ?
From: |
Ole Tange |
Subject: |
Re: Why this should not work ? |
Date: |
Thu, 7 Mar 2013 02:29:39 +0100 |
On Tue, Feb 19, 2013 at 4:13 PM, yacob sen <yacob_123@yahoo.com> wrote:
>
> 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)
You have put the $ftp_site inside the ' thus protecting it from being
expanded by the outer shell, and the inner shell does not know about
it as it is not exported. Put it outside or 'export' it:
time parallel --eta -j+0 'mkdir -p {2}/{1}; cd {2}/{1}; wget
ftp://'$ftp_site'/{1}/*.zip' ::: $(seq -w 001 004) ::: $(seq -w 11 11)
or
export ftp_site
time parallel --eta -j+0 'mkdir -p {2}/{1}; cd {2}/{1}; wget
ftp://$ftp_site/{1}/*.zip' ::: $(seq -w 001 004) ::: $(seq -w 11 11)
/Ole
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Why this should not work ?,
Ole Tange <=