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
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
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 (e.g. in the same command line as during sbatch
job