parallel
[Top][All Lists]
Advanced

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

Re: job race!


From: Ozgur Akgun
Subject: Re: job race!
Date: Thu, 25 Apr 2013 15:00:06 +0100

Hi Thomas,

On 25 April 2013 10:07, Thomas Sattler <sattler@med.uni-frankfurt.de> wrote:
touch flagfile; { SECONDS=0; while [ -f flagfile ]; do sleep 1;
  done; pkill parallel; sleep $SECONDS; pkill stress; } & \
    parallel -j0 "stress -c 1 -t {} &> /dev/null && echo {};
      rm -f flagfile" ::: {3..32} 2> /dev/null

This is actually pretty close to a full solution to my original question, thanks!

One thing I don't like about it is the use of pkill though. I really don't want to assume no other instance of parallel (or my stress-replacement-process) will be running in the system.

- Ozgur.


reply via email to

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