sots-re/verify/harness/profiling/ui.sh

6 lines
416 B
Bash
Executable file

#!/bin/bash
# usage: ui.sh <cmdfile> <wait-seconds> [shotname]
S=/tmp/claude-1000/-home-alex/ec8e34f8-af37-4ef2-a309-ed6a15293097/scratchpad
scp -q "$1" re@192.168.10.139:C:/SOTS/ui/cmd.txt && ssh -o BatchMode=yes re@192.168.10.139 'schtasks /Run /TN SOTSUI | Out-Null'
sleep "$2"
ssh spicy 'echo "screendump /tmp/x.ppm" | qm monitor 140' >/dev/null && scp -q spicy:/tmp/x.ppm $S/ && convert $S/x.ppm $S/${3:-x}.png