I am currently using Task Spooler, which is a job scheduler I have installed on my iMac. I have encountered a problem in which I cannot execute a job properly.
Using a bash script, this is how I run can use Task Spooler effectively:
K="opt" # Jobname
ts -S 1 # Number of jobs to run (1 or 2)
for a in *inp
do
ts -m -L $K bash -c "nohup ~/ORCA/orca $a > $a.out"
done
However, I need to run an executable that then runs another file that contains an executable. Without Task Spooler, I am able to run it like this (using a bash script):
a=2 # First job
b=2 # Last job
while [ $a -le $b ]
do
./string.exe 000$a > ./scratch/paragsm000$a &
((a=a+1))
done
string.exe uses another file (that is executable) with the below command:
~/ORCA/orca $ofile > $ofileout
However, this results in me only being able to run one job at a time (need two cores for efficiency, but only have two cores) and I have to start each job individually (I have ~30 to run). I have been unable to find the proper settings using Task Spooler. Does anyone know how a solution to my problem, or of an alternative software I could use?