Re: [slurm-users] #SBATCH options as Bash script parameters

2018-03-18 Thread Loris Bennett
Hi Jessie, Jessie Poquérusse writes: > Hello, > > In trying to modularize and genericize my Bash scripts as much as > possible, I was wondering if there was a way to turn #SBATCH options > (mainly walltime, mem, and output and error file directories) into > externally defined script parameters

Re: [slurm-users] #SBATCH options as Bash script parameters

2018-03-18 Thread Bill Barth
I don’t think you can turn them into command-line arguments to your script since Bash treats the #SBATCH lines as comments and can’t see “into” them, but you can, as I’m sure you know, override any #SBATCH options by putting them on the sbatch command-line before specifying the command to run. I