comparison master/bin/wbash.sh @ 9:55e953e5c66f

wrun.sh, invoke.sh: add control of use of nohup, with -i(mmediately) and -w(ait) respectively wrun.sh: add support for fixed file input via -ff, handle -ff - in obvious way wbash.sh: use -ff - and -i to execute shell commands on all workers
author Henry S. Thompson <ht@markup.co.uk>
date Tue, 02 Oct 2018 10:52:45 +0000
parents
children 9275e2a8b5e2
comparison
equal deleted inserted replaced
8:5db6015689a2 9:55e953e5c66f
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'