Mercurial > hg > cc > azure
annotate master/bin/wbash.sh @ 27:dd19cf97b6dd
attempt to fix robustness pblms
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Sat, 10 Nov 2018 13:20:56 +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' |