<div dir="ltr">Due to needing to support existing HPC workflows. I have a need to pass a bash script within a python subprocess. It was working great with openpbs, now I need to convert it to SLURM. I have it largely working in SLURM hosted on Ubuntu 20.04 except that the job array is not being populated.<div><br></div><div>I've read from another user that BASH may try to evaluate variables before they are defined by the SLURM job. I've also seen that errors in SBATCH directives, such as a non-alphanumeric job name, can cause SLURM to not evaluate the following directives. Can someone advise me on when SLURM populates variables?<br><br>I have a StackOverflow post here <a href="https://stackoverflow.com/questions/74323372/slurm-array-job-bash-scripting-within-python-subprocess">https://stackoverflow.com/questions/74323372/slurm-array-job-bash-scripting-within-python-subprocess</a><br clear="all"><div><br></div><div>Regards,</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p class="MsoNormal"><b>Chase Schuette </b><i>Pronouns: He/Him/His</i><b> | Caterpillar<u></u><u></u></b></p><p class="MsoNormal"><b>Autonomy High Performance Computing | Iowa State University Relations<u></u><u></u></b></p><p class="MsoNormal">Mobile: 507-475-1949 | Email: <span style="color:rgb(5,99,193)"><a href="mailto:chaseschuette@gmail.com" style="color:rgb(17,85,204)" target="_blank">chase.schuette@gmail.com</a> </span>| <a href="https://www.linkedin.com/in/chaseschuette/" style="color:rgb(17,85,204)" target="_blank"><span style="color:rgb(5,99,193)">LinkedIn</span></a><br>Schedule 15mins here: <a href="https://calendly.com/chaseschuette" style="color:rgb(17,85,204)" target="_blank"><span style="color:blue">https://calendly.com/chaseschuette</span></a></p></div></div></div></div>