bug-parallel
[Top][All Lists]
Advanced

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

Re: GNU Parallel Bug Reports [Bug] Expansion using --header fails on --r


From: Nazgul
Subject: Re: GNU Parallel Bug Reports [Bug] Expansion using --header fails on --return argument
Date: Thu, 29 Oct 2015 11:18:25 +1100

I understand. My issue with --transfer is that it interprets all parameters as files, while only some of them are.

Example:
$ echo "12\nAB" > foo.txt
$ echo "12\nAB" > bar.txt
parallel --sshlogin 1/$REMOTE_HOST --transfer grep {1} {2} ::: foo.txt bar.txt ::: "[0-9]+" "[A-Z]+"
parallel: Warning: [0-9]+ is not readable and will not be transferred.
grep: [0-9]+: No such file or directory
parallel: Warning: [A-Z]+ is not readable and will not be transferred.
grep: [A-Z]+: No such file or directory
parallel: Warning: [0-9]+ is not readable and will not be transferred.
grep: [0-9]+: No such file or directory
parallel: Warning: [A-Z]+ is not readable and will not be transferred.
grep: [A-Z]+: No such file or directory


At a higher level, what I am trying to do is to pass a log file - specific to each job - so that the script I run can check its existence and avoid repeating the experiment if the log file is there.
It is an intricate mechanism, but I am not sure how to do it within parallel otherwise, because parallel executes the command remotely.


Following, is a slight modification of the man entry that could avoid misunderstandings.

file will be transferred to each sshlogin before a jobs is started. It will be removed if --cleanup is active. The file may be a script to run or some common base data needed for the jobs.  Multiple --bf can be specified to transfer more basefiles. The file will be transferred the same way as --transfer.

file will be transferred to each sshlogin before a jobs is started. It will be removed if --cleanup is active. The file may be a script to run or some common base data needed for the jobs. It is not intended for files specific to single jobs (i.e., dependent on parallel parameters); for such purpose, --transfer should be used. Multiple --bf can be specified to transfer more basefiles. The file will be transferred the same way as --transfer.



On 29 October 2015 at 10:52, Ole Tange <address@hidden> wrote:
On Wed, Oct 28, 2015 at 3:49 AM, Nazgul <address@hidden> wrote:
> Hi all,
>
> a while ago I reported a problem (tracked here:
> https://savannah.gnu.org/bugs/index.php?45907 ), about arguments not being
> expanded for parameter --return. Today I am experiencing the same problem
> with the --basefile parameter. Would it be possible to have expansion on
> --basefile as well?

No. Because --basefile is meant for files that are common for _all_
jobs. E.g. a big datafile that all jobs use to look up into.

What you are looking for is probably --transfer. At least that would
work for your example.

Please help by rephrasing the man page, so you would have understood
this by reading the man page.


/Ole



--
Marco

reply via email to

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