[slurm-users] #SBATCH options as Bash script parameters
Loris Bennett
loris.bennett at fu-berlin.de
Mon Mar 19 00:50:17 MDT 2018
Hi Jessie,
Jessie Poquérusse <jessie.poquerusse at gmail.com> 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 (e.g. in the same command line as
> during sbatch job submission).
Maybe I am misunderstanding your question, but isn't
sbatch --time 01:00:00 --mem=1024M --output=out.txt --error=err.txt
what you want?
Cheers,
Loris
--
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.bennett at fu-berlin.de
More information about the slurm-users
mailing list