omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / evidence / kfd / 20261113-rebase-c4e5e963 / tools / gate.sh
| 1 | #!/bin/sh |
| 2 | # gate.sh NAME CMD...: run CMD under the CPU pool lock with nice, log to build/kfd-gates/NAME.log |
| 3 | name=$1; shift |
| 4 | mkdir -p build/kfd-gates |
| 5 | start=$(date -u +%Y-%m-%dT%H:%M:%SZ) |
| 6 | flock /home/drakestapleton/handoffs/hive/queen/pool-16-18.lock taskset -c 16-18 nice -n 10 "$@" > build/kfd-gates/$name.log 2>&1 |
| 7 | rc=$? |
| 8 | printf '%s\t%s\t%s\t%s\t%s\n' "$name" "$rc" "$start" "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$*" >> build/kfd-gates/exits.tsv |
| 9 | printf '%s exit %s\n' "$name" "$rc" |