parallel
[Top][All Lists]
Advanced

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

Re: --nonall and --basefile


From: Ole Tange
Subject: Re: --nonall and --basefile
Date: Fri, 19 Aug 2011 16:32:56 +0200

It is clearly a bug that GNU Parallel does not respect --basefile when
doing --nonall/--onall. And the idea in your fix seems reasonable.

Unless I find it breaks anything expect it in next release.

/Ole

On Wed, Aug 17, 2011 at 5:32 PM, Ben. B. <bennymack@gmail.com> wrote:
> Would it be possible to update parallel so that one can pass a --basefile
> when doing --nonall with --sshlogin?
>
> I hacked it to work by doing the following:
>
>   if($::opt_nonall or $::opt_onall) {
>       ...
>       setup_basefile() if @::opt_basefile;
>       ...
>       my $exit = min(undef_as_zero($Global::exitstatus),254);
>       cleanup_basefile() if @::opt_basefile;
>       wait_and_exit($exit)
>   }
>
> Not sure if this is acceptable/desirable but in my limited testing it did
> work. Thanks!



reply via email to

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