Mercurial > hg > cc > azure
view master/bin/wbash.sh @ 68:1f04bce6ead7 default tip
use basefile instead of transferfile, and remove cleanup: belt and braces wrt lossage of sac_schemes.py in 15% of 1000_k3,
this as used in a_2
author | Henry S. Thompson <ht@markup.co.uk> |
---|---|
date | Thu, 04 Jun 2020 20:44:44 +0000 |
parents | 9275e2a8b5e2 |
children |
line wrap: on
line source
#!/bin/bash if [ $# -lt 1 ] then cat 1>&2 <<EOF Usage: cat cmds | $0 [-d] [-x] 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 [$id] "bash \$args" if -d, show command eventually on stderr EOF exit 1 fi if [ $1 = -d ] then shift debug=-d fi ss=$1 shift wrun.sh $ss '"bash -s"' $debug -ff - -i "$@" '\<ifile.txt'