Files
felhom.eu/documentation/audits/clock-list-2026-11-11/tools/run-box.sh
T
admin 978666dde3
gates / gates (push) Successful in 2m2s
lists: the Clock list (70 jobs) and the End-dates list (39 things), 9 register rows, 4 decisions
Read-only review of every job on a timer and of everything that ends on a date,
with measurements from the three test boxes. Nothing ends in the next 14 days.
Register 236 -> 245 (R-1379..R-1387), pointer lines on twelve rows, D76-D79 in
STATUS.md. Part C: felhom-agent's clone address holds no token now; the other
clones wait for the operator's yes. R-1035's 4-week check moved to 2026-11-18
(operator read needed).

Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
2026-11-11 11:54:42 +01:00

27 lines
1.1 KiB
Bash

#!/bin/bash
# run-box.sh KIND NAME SSHTARGET — run tools/host-KIND.sh on the host and tools/guest-KIND.sh in guest 9201, read-only.
# Output: box/NAME-host-KIND.txt and box/NAME-guest-KIND.txt beside this folder.
set -u
D=$(cd "$(dirname "$0")/.." && pwd)
k=$1; n=$2; t=$3
SSH="ssh -o BatchMode=yes -o ConnectTimeout=10"
{
printf '# host-%s %s taken %s from DooPlex\n' "$k" "$n" "$(date -u +%FT%TZ)"
timeout 240 $SSH "$t" 'bash -s' < "$D/tools/host-$k.sh"
printf 'RC=%s\n' "$?"
} > "$D/box/$n-host-$k.txt" 2>&1
{
printf '# guest-%s %s taken %s from DooPlex\n' "$k" "$n" "$(date -u +%FT%TZ)"
timeout 240 $SSH "$t" 'pct exec 9201 -- bash -s' < "$D/tools/guest-$k.sh"
printf 'RC=%s\n' "$?"
} > "$D/box/$n-guest-$k.txt" 2>&1
if [ "$k" = clock ]; then
{
printf '# offset %s: box clock minus DooPlex clock (midpoint of the call), seconds\n' "$n"
for i in 1 2 3 4 5; do
a=$(date +%s.%N); b=$($SSH "$t" 'date +%s.%N'); c=$(date +%s.%N)
awk -v a="$a" -v b="$b" -v c="$c" 'BEGIN{printf "offset=%.3f rtt=%.3f\n", b-(a+c)/2, c-a}'
done
} > "$D/box/$n-offset.txt" 2>&1
fi