Mercurial > hg > cc > azure
annotate master/bin/wbash.sh @ 23:cc065b2a2543
more tweaks wrt getting H4 going
| author | Henry S. Thompson <ht@markup.co.uk> |
|---|---|
| date | Wed, 31 Oct 2018 21:42:34 +0000 |
| parents | 55e953e5c66f |
| children | 9275e2a8b5e2 |
| rev | line source |
|---|---|
| 9 | 1 #!/bin/bash |
| 2 if [ $# -lt 1 ] | |
| 3 then | |
| 4 cat 1>&2 <<EOF | |
| 5 Usage: cat cmds | $0 SSname [...args] | |
| 6 Where SSname is the name of a VM scale set. | |
| 7 | |
| 8 Runs bash [with args] on every machine in a scale set, | |
| 9 on commands from stdin | |
| 10 by doing as it were | |
| 11 cat | ssh machine "bash \$args" | |
| 12 EOF | |
| 13 exit 1 | |
| 14 fi | |
| 15 ss=$1 | |
| 16 shift | |
| 17 wrun.sh $ss bash -x -ff - -i "$@" '\<ifile.txt' |
