Hi Thomas,
On 25 April 2013 10:07, Thomas Sattler <[email protected]> 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.