annotate bin/masterMaster.sh @ 65:e71aeb3355ff

fix from Sebastian
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Fri, 24 Apr 2020 20:01:25 +0100
parents e34cda3e7483
children 6304d5c46229
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
21
a598469733d3 more job scripts
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/bin/bash
26
a9a9f6f1832e finally hacked something that works
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 21
diff changeset
2 # This runs on login machine to launch the real job (named by $1) on two machines
34
e34cda3e7483 pass through extract args
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 33
diff changeset
3 # Any further args are passed to parallel
21
a598469733d3 more job scripts
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 echo $(date) Launching master workers for "$@"
34
e34cda3e7483 pass through extract args
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 33
diff changeset
5 task=$1
e34cda3e7483 pass through extract args
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 33
diff changeset
6 shift
e34cda3e7483 pass through extract args
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 33
diff changeset
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 '{}'
e34cda3e7483 pass through extract args
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 33
diff changeset
8 echo $(date) $task "$@" workers done