#!/bin/bash
if [ $# -lt 1 ]
then
  cat 1>&2 <<EOF
Usage: cat cmds | $0 SSname [...args]
Where SSname is the name of a VM scale set.

Runs bash [with args] on every machine in a scale set,
 on commands from stdin
 by doing as it were
  cat | ssh machine "bash \$args"
EOF
 exit 1
fi
ss=$1
shift
wrun.sh $ss bash -x -ff - -i "$@" '\<ifile.txt'
