#!/bin/bash # Collection of the logs of phase 2 of run_all.sh (IIS-Q-0003): the climbs, the random matrices # and the hunts. q3_search_collect.py stops with an error if a log shows a failure. # I wrote this script after the first run of this command. The file of the logs holds the output # of the run with this script. # usage (from the root of the workspace): /bin/bash -c '. work/lean_env.sh && bash work/capset/q0003/run_search_collect.sh' W=$(cd "$(dirname "$0")/../../.." && pwd) # the root of the workspace; this script is in work/capset/q0003 D=$W/work/capset/q0003 L=$D/logs PY3=/opt/homebrew/bin/python3 "$PY3" -I "$D/q3_search_collect.py" \ "$L/q3_climb_L0.log" "$L/q3_climb_L1.log" \ "$L/q3_pairs_L0_S5.log" "$L/q3_pairs_L0_S6.log" "$L/q3_pairs_L0_S7.log" \ "$L/q3_pairs_L1_S5.log" "$L/q3_pairs_L1_S6.log" "$L/q3_pairs_L1_S7.log" \ "$L/q3_hunt_L0.log" "$L/q3_hunt_L1.log" > "$L/q3_search_collected.log" 2>&1 echo "collect exit $?"