diff 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
line wrap: on
line diff
--- a/bin/masterMaster.sh	Tue Mar 24 17:53:35 2020 +0000
+++ b/bin/masterMaster.sh	Thu Mar 26 12:23:33 2020 +0000
@@ -1,5 +1,8 @@
 #!/bin/bash
 # This runs on login machine to launch the real job (named by $1) on two machines
+# Any further args are passed to parallel
 echo $(date) Launching master workers for "$@"
-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 '{}'
-echo $(date) "$@" workers done
+task=$1
+shift
+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 '{}'
+echo $(date) $task "$@" workers done