Hi,

when parallel transfers a file to a remote machine, e.g. a basefile, it creates the required directories on remote if they don't exist and uses pre-existing directories otherwise. However if the target directory on the remote machine is a symlink to another directory, it will replace it with a directory instead of putting the transfered file into the linked target directory.

An example:

# on remote:
mkdir remoteLinkTarget
ln -s $HOME/remoteLinkTarget $HOME/wd

# on local
mkdir wd
touch wd/testfile

parallel --nonall --sshloginfile remoteHosts --basefile wd/testfile

# wd on remote is now a directory containing the testfile and the symlink is gone # I would have expected testfile to be placed physically under $HOME/remoteLinkTarget/testfile

Is it intended to behave like that?

Version: GNU parallel 20170522

Cheers,
Benjamin



Reply via email to