mirror of
https://git.savannah.gnu.org/git/parallel.git
synced 2024-10-18 12:59:39 +00:00
13 lines
304 B
Bash
13 lines
304 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# force load > 10
|
||
|
while uptime | grep -v age:.[1-9][0-9].[0-9][0-9] >/dev/null ; do (timeout 5 nice burnP6 2>/dev/null &) done
|
||
|
|
||
|
sleep 1 &
|
||
|
PID1=$!
|
||
|
sleep 1 &
|
||
|
PID2=$!
|
||
|
sleep 1 &
|
||
|
PID3=$!
|
||
|
stdout /usr/bin/time -f %e niceload -l 8 -H -p $PID1 -p $PID2 -p $PID3 | perl -ne '$_ >= 5 and print "OK\n"'
|