comparison master/bin/internal/invoke.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
comparison
equal deleted inserted replaced
9:55e953e5c66f 10:2fbefb8d1a9e
31 echo "# from $ifile" 1>&2 31 echo "# from $ifile" 1>&2
32 scp -P $port $ifile $ip:ifile.txt 32 scp -P $port $ifile $ip:ifile.txt
33 fi || echo scp failed, status=$? 1>&2 33 fi || echo scp failed, status=$? 1>&2
34 if [ "$wait" ] 34 if [ "$wait" ]
35 then 35 then
36 ssh -t -p $port $ip "nohup $cmd $id $me ""$@"" > nohup.cc" 36 ssh -tt -p $port $ip "nohup $cmd $id $me ""$@"" > nohup.cc"
37 else 37 else
38 ssh -p $port $ip "$cmd $id $me ""$@" 38 ssh -p $port $ip "$cmd $id $me ""$@"
39 fi || echo ssh failed, status=$? 1>&2 39 fi || echo ssh failed, status=$? 1>&2
40 echo "#$(date)#$id#" 1>&2 40 echo "#$(date)#$id#" 1>&2