#!/bin/bash #SBATCH --job-name=example_job # Job name, will show up in squeue output #SBATCH --ntasks=1 # Number of individual tasks, usually 1 except when using MPI, etc. #SBATCH --cpus-per-task=1 # Number of CPUs #SBATCH --nodes=1 # Number of nodes, usaully 1 except when using MPI, etc. #SBATCH --time=0-00:01:00 # Runtime in DAYS-HH:MM:SS format #SBATCH --mem-per-cpu=100 # Memory per cpu in MB (see also --mem) #SBATCH --output=job_%j.out # File to which standard out will be written #SBATCH --error=job_%j.err # File to which standard err will be written #SBATCH --mail-type=END # Type of email notification- BEGIN,END,FAIL,ALL #SBATCH --mail-user=j.d@fu-berlin.de # Email to which notifications will be sent # store job info in output file, if you want... scontrol show job $SLURM_JOBID # run your program... hostname # wait some time... sleep 50