...
Code Block | ||||
---|---|---|---|---|
| ||||
#!/bin/bash #SBATCH -c 1 # Request one core #SBATCH -N 1 # Request one node (if you request more than one core with -c, also using # -N 1 means all cores will be on the same node) #SBATCH -t 0-00:05 # Runtime in D-HH:MM format #SBATCH -p short # Partition to run in #SBATCH --mem=100 # Memory total in MB (for all cores) #SBATCH -o hostname_%j.out # File to which STDOUT will be written, including job ID #SBATCH -e hostname_%j.err # File to which STDERR will be written, including job ID #SBATCH --mail-type=ALL FAIL # Type of email notification- BEGIN,END,FAIL,ALL #SBATCH --mail-user=abc123@hms.harvard.edu # Email to which notifications will be sent echo $1 > file.txt |
...
Code Block |
---|
#!/bin/bash #SBATCH -c 1 # 1 core #SBATCH -t 0-00:05 # Runtime of 5 minutes, in D-HH:MM format #SBATCH -p short # Run in short partition #SBATCH -o hostname_sinfo_%j.out # File to which STDOUT + STDERR will be written, including job ID in filename #SBATCH --mail-type=ALL FAIL # ALL email notification type #SBATCH --mail-user=abc123@hms.harvard.edu # Email to which notifications will be sent srun hostname srun sinfo |
...