#!/usr/bin/env bash # SUM Parts - dump everything about the most recent run attempt set -uo pipefail RUNROOT="$HOME/sum-parts/runs" D="${1:-$(cat "$RUNROOT/.latest" 2>/dev/null)}" echo "run dir: $D" [ -d "$D" ] || { echo " (missing)"; exit 1; } ls -la "$D" for f in watchdog.log nohup.out status.txt train.log; do echo echo "=== $f ===" if [ -f "$D/$f" ]; then tail -30 "$D/$f" else echo " (absent)" fi done echo echo "=== processes ===" pgrep -af 'train_watchdog|main.py' || echo " none running" echo echo "=== syntax check of watchdog ===" bash -n /mnt/d/MYCLAUDE_PROJECT/sum-parts-test/scripts/train_watchdog.sh && echo " OK"