1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash set -e . "$(dirname "$0")/util/lib.sh" init FAILED=0 for i in stress-*; do echo "$i ..." setsid -w "$i/run.sh" FAILED=$(( FAILED + $? )) echo done exit $FAILED