[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU Parallel Bug Reports problem running most basic sem command
From: |
Andreas Bernauer |
Subject: |
Re: GNU Parallel Bug Reports problem running most basic sem command |
Date: |
Thu, 1 Oct 2015 12:58:46 +0200 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 |
On 29/09/15 20:53, Ghinwa Choueiter wrote:
> I am running on an imac:
> ProductName:Mac OS X
> ProductVersion:10.10.5
>
> and parallel --version gives
>
> GNU parallel 20150822
>
> I am unable to run sem. Just the sem command with nothing else gives me:
> parallel: Warning: Semaphore stuck for 30 seconds. Consider using
> --semaphoretimeout.
Can you post the command you are trying to run?
In any case, with the same version of parallel,
the example from the man page
$ cat myfile
a
$ seq 3 | parallel sem sed -i -e 'i{}' myfile
did not run on my Mac, at first. It just blocked.
Then I deleted the empty directory ~/.parallel/semaphores.
After that, the command run, but had no effect on myfile. I think the
sed syntax is wrong for Mac:
$ sed -i -e 'i3' myfile
sed: 1: "i3": command i expects \ followed by text
But running
$ seq 3 | parallel sem 'echo {} >> myfile'
worked:
$ cat myfile
a
1
2
3
-Andreas