[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: return output directory
From: |
Ole Tange |
Subject: |
Re: return output directory |
Date: |
Sun, 13 Dec 2015 13:37:43 +0100 |
On Sat, Dec 12, 2015 at 9:19 PM, Ryan Brothers <ryan.brothers@gmail.com> wrote:
> When using --return, files copied back to the local machine are placed
> in the current working directory such as in the below:
>
> parallel -S $SERVER1 --return {}.out --cleanup echo {} ">"{}.out ::: a
>
> Is it possible to set the output directory for the files returned? I
> think it might be the equivalent of --workdir except for the local
> machine.
Short answer: no, not in general.
You can use trickery like this:
parallel -S $SERVER1 --return a/b/./c/{} 'mkdir -p c; touch c/{}' ::: d
This will transfer $SERVER1:c/d to a/b/c/d
/Ole