parallel
[Top][All Lists]
Advanced

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

Re: Job slot number {%} working yet?


From: Ole Tange
Subject: Re: Job slot number {%} working yet?
Date: Thu, 11 Sep 2014 12:08:26 +0200

On Thu, Sep 11, 2014 at 4:18 AM, Jamshid Afshar <jamshid69@gmail.com> wrote:

> Hi, I'm trying to use the job slot number "{%}" in order to run a
> command on a pool of servers. I believe I am using the latest alpha
> build (on OSX, "brew install parallel"):
>
> $ sem --version
> GNU parallel 20140822
>
> Running all these commands at the same time seems to work as expected
> -- only three jobs run at a time, but "{%}" is always "1".
>
> I'd expect it to cycle 1-3.

I understand why you might expect that. But {%} is not stored between
invocations. So if we want {%} to work with 'sem' then we need somehow
to store that when starting the job and remove it when done.

> Am I doing something wrong or is this alpha feature not working yet?

It is working when not using 'sem'/--semaphore.


/Ole



reply via email to

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