Search code examples
linuxconfiguration-filesslurm

Can I set default options for Slurm sbatch?


Is it possible for a user to set up a set of default parameters for job submissions? In particular, it would be nice to have all of my jobs give me status updates via email, without having to add this instruction to every job script.


Solution

  • I made a wrapper script:

    #!/bin/bash
    OPTS='--mail-type=ALL --mail-user=<address>'
    sbatch $OPTS "$@"
    

    Thanks to John Zwinck for the idea.