#!/bin/bash # Independent union-of-masks tables for IIS-Q-0003 (clean environment, 12 processes). # usage: bash work/capset/q0003/run_tables.sh W=$(cd "$(dirname "$0")/../../.." && pwd) # the root of the workspace; this script is in work/capset/q0003 Q=$W/work/capset/q0003/q3_check L=$W/work/capset/q0003/logs mkdir -p "$L" { echo "start $(date -u +%Y-%m-%dT%H:%M:%SZ)" echo "binary sha256 $(shasum -a 256 "$Q" | cut -d' ' -f1)" for LAYER in 0 1; do "$Q" tables "$LAYER" p1w 36,38,39,41,42 > "$L/q3_p1w_L$LAYER.log" "$Q" tables "$LAYER" p1s 36,38,39,41,42 > "$L/q3_p1s_L$LAYER.log" "$Q" tables "$LAYER" intact 32,33,34,35,36,39,40,42,43 > "$L/q3_intact_L$LAYER.log" "$Q" tables "$LAYER" dual 30,31,32,33,34,35,36,37,38,39,40,42,43 > "$L/q3_dual_L$LAYER.log" "$Q" tables "$LAYER" p1w 30,31,32,33,34,35,36,37,38,39,40,41,42 > "$L/q3_p1w_full_L$LAYER.log" for p in 0 1 2 3 4 5 6 7 8 9 10 11; do "$Q" tables "$LAYER" p2 34,35,36,37,38 "$p/12" > "$L/q3_p2_L${LAYER}_$p.log" & done wait for p in 0 1 2 3 4 5 6 7 8 9 10 11; do "$Q" tables "$LAYER" p3 32,33,34,35,36 "$p/12" > "$L/q3_p3_L${LAYER}_$p.log" & done wait echo "layer $LAYER complete $(date -u +%Y-%m-%dT%H:%M:%SZ)" done echo "end $(date -u +%Y-%m-%dT%H:%M:%SZ)" } > "$L/q3_tables_run.log" 2>&1