On Sat, Dec 12, 2015 at 9:19 PM, Ryan Brothers <[email protected]> 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

Reply via email to