简体   繁体   中英

comment in bash script processed by slurm

I am using slurm on a cluster to run jobs and submit a script that looks like below with sbatch :

#!/usr/bin/env bash

#SBATCH -o slurm.sh.out
#SBATCH -p defq
#SBATCH --mail-type=ALL
#SBATCH --mail-user=my.email@something.com

echo "hello"

Can I somehow comment out a #SBATCH line, eg the #SBATCH --mail-user=my.email@something.com in this script? Since the slurm instructions are bash comments themselves I would not know how to achieve this.

just add another # at the beginning.

##SBATCH --mail-user...

This will not be processed by Slurm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM