diff master/bin/wrun.sh @ 10:2fbefb8d1a9e

wrun.sh: usage catchup invoke.sh: force terminal allocation on workers test1.sh: support control of number of worker processes are spawned, support -t to turn off random delay at startup count1.sh: actual do the counting in subprocs to avoid disk contention
author Henry S. Thompson <ht@markup.co.uk>
date Mon, 08 Oct 2018 13:17:23 +0000
parents 55e953e5c66f
children 9275e2a8b5e2
line wrap: on
line diff
--- a/master/bin/wrun.sh	Tue Oct 02 10:52:45 2018 +0000
+++ b/master/bin/wrun.sh	Mon Oct 08 13:17:23 2018 +0000
@@ -6,12 +6,13 @@
 Where name is the name of a VM scale set.
 
 Runs cmd on every machine in a scale set,
- passing args and, 
+ (only using n machines if -np n is present)
+ passing args and (as ~/ifile.txt), 
   if -f, lines from file split per worker
   if -ff, complete file sent to all workers
-  unless -x, worker id
+  and, unless -x, worker id
  by doing as it were
-  [ echo line(s)-from-file |] ssh machine "$cmd [id] "$args"" 
+  scp machine: <(line(s)-from-file) ifile.txt && ssh machine "$cmd [id] "$args""
   if -i, don\'t use nohup on the workers so returns immediately
    [default is to use nohup unless neither -f or -ff]
 EOF