bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports Option to cd to current directory on remote


From: Andreas Bernauer
Subject: Re: GNU Parallel Bug Reports Option to cd to current directory on remote machine
Date: Wed, 29 Aug 2012 07:00:27 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:14.0) Gecko/20120713 Thunderbird/14.0

On 8/28/12 18:31, Martin Ward wrote:
> 
> If one has a set of machines set up to mount the same home directory
> (or other partition), eg via NFS, then it would be really useful
> to automatically run parallel over all the machines via ssh.
> 
> If we know that the directory structure on the remote machine is the same
> as the directory structure on the local machine, it would be really
> useful to have an option to tell the remote process to cd to the current
> working directory on the local machine before running the command.
> 
> This is the equivalent to typing:
> 
> parallel --wd `pwd` ...
> 
> on the command line every time you run parallel.
> 

Does '--wd .' help?

>From the manual:

"
--workdir mydir
--wd mydir

[...]

The special mydir value . uses the current working dir. If
the current working dir is beneath your home dir, the value .
is treated as the relative path to your home dir. This means
that if your home dir is different on remote computers (e.g.
if your login is different) the relative path will still be
relative to your home dir.
"




reply via email to

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