comparison bin/masterMaster.sh @ 34:e34cda3e7483

pass through extract args
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 26 Mar 2020 12:23:33 +0000
parents 4c23b1766692
children 6304d5c46229
comparison
equal deleted inserted replaced
33:4c23b1766692 34:e34cda3e7483
1 #!/bin/bash 1 #!/bin/bash
2 # This runs on login machine to launch the real job (named by $1) on two machines 2 # This runs on login machine to launch the real job (named by $1) on two machines
3 # Any further args are passed to parallel
3 echo $(date) Launching master workers for "$@" 4 echo $(date) Launching master workers for "$@"
4 seq 1 -1 0 | parallel --will-cite --joblog master_$1.log -S r1i5n1 -S r1i5n0 -N 1 --workdir /dev/shm --transferfile $1_'{}'.txt --transferfile by11s.txt $HOME/bin/$1.sh '{}' 5 task=$1
5 echo $(date) "$@" workers done 6 shift
7 seq 1 -1 0 | parallel --will-cite --joblog master_$task.log -S r1i5n1 -S r1i5n0 -N 1 --workdir /dev/shm --transferfile ${task}_'{}'.txt $* $HOME/bin/$task.sh '{}'
8 echo $(date) $task "$@" workers done