-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwatch_optimization.sh
More file actions
executable file
·25 lines (22 loc) · 1.04 KB
/
watch_optimization.sh
File metadata and controls
executable file
·25 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# Watch DOIN optimization progress — shows only round completions and key events
# Usage: bash watch_optimization.sh [dragon|omega|both]
DRAGON_LOG="/home/openclaw/.openclaw/workspace/doin-node/dragon_node.log"
OMEGA_LOG_CMD="ssh -p 62024 harveybc@192.168.1.119 'tail -f /home/harveybc/doin-node/omega_node.log'"
filter='Round|fitness|CONVERGE|champion|best_perf|OPTIMAE|migration|improvement|🎯|📊|🏆|Error|WARNING'
case "${1:-both}" in
dragon)
echo "=== Watching Dragon ==="
tail -f "$DRAGON_LOG" | grep --line-buffered -iE "$filter"
;;
omega)
echo "=== Watching Omega ==="
ssh -p 62024 harveybc@192.168.1.119 "tail -f /home/harveybc/doin-node/omega_node.log" | grep --line-buffered -iE "$filter"
;;
both)
echo "=== Watching Dragon + Omega ==="
(tail -f "$DRAGON_LOG" | grep --line-buffered -iE "$filter" | sed 's/^/[DRAGON] /') &
(ssh -p 62024 harveybc@192.168.1.119 "tail -f /home/harveybc/doin-node/omega_node.log" | grep --line-buffered -iE "$filter" | sed 's/^/[OMEGA] /') &
wait
;;
esac