Open TomNicholas opened 5 years ago
Thank you for a thoroughly detailed issue. In short each individual command needs to be run using bash -c
. So for your example
❯ COMMAND=( "echo 0 && echo 1" "echo 2 && echo 3" )
❯ bash -c ${COMMAND[1]}
0
1
This tells me I really need to run tests of the generated scheduler files, since I solved this same problem for the shell 'scheduler', so I'll leave this open until I implement those tests.
I have managed to get jobs to submit on SLURM, but they failed once they started with the very cryptic error that " mkdir has no option 's' ".
My
.yml
file looks likewhich with my altered version of the code (supplied in this PR) produces the batch script file
experi_00.slurm
which contains:I can't see anything wrong with this, but it's still failing. I don't know a lot about bash scripting (I always try to use python as much as possible instead!), but I think it has something to do with creating a bash array whose elements are multiple chained commands, i.e. at the command prompt entering
This example is in the format experi produces, but prints
2 && echo 3
, which is clearly not the desired output.