On Thu, Sep 11, 2014 at 4:18 AM, Jamshid Afshar <jamshi...@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