|
From: | Bradley Asztalos |
Subject: | Re: singleton for script with shebang |
Date: | Fri, 2 Jan 2015 11:53:09 -0800 |
--timeout secs (not implemented)
-t secs (not implemented)
If the semaphore is not released within secs seconds, take itanyway.
And indeed testing of (parallel --version \n GNU parallel 20141022) indicate that it does not work. Anyway great product, thanks Ole.
On Fri, Jan 2, 2015 at 10:51 AM, Bradley Asztalos
<brad@customweather.com> wrote:
> Taking this one step further, I know of course there are other ways to do
> this, but what about a way to have sem die if it cannot immediately acquire
> execute? Something like --die_young so that it could be used not only to
> serialize but to disallow a run if there is already a process running with
> the same lock_id.
So that is almost the opposite of --semaphoretimeout
Maybe it should be able to take a negative value: If you cannot get
the semaphore within 2 seconds, give up.
sem --semaphoretimeout -2 do_stuff
/Ole
[Prev in Thread] | Current Thread | [Next in Thread] |