#!/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"