Files
felhom.eu/documentation/audits/new-apps-2026-10-01/tools/bench.sh
T
2026-10-01 18:01:40 +02:00

5 lines
316 B
Bash
Executable File

#!/bin/bash
# bench.sh — run stdin as a bash script inside bench LXC 9401 on demo-hp (one temp file per call).
t=/tmp/b9401-$$-$RANDOM.sh
ssh -o BatchMode=yes demo-hp "export LC_ALL=C; cat > $t; pct push 9401 $t $t >/dev/null 2>&1; pct exec 9401 -- bash $t; rc=\$?; pct exec 9401 -- rm -f $t; rm -f $t; exit \$rc"