Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: add required walltime to minimal example

...

Section


Column


Code Block
languagebash
linenumberstrue
#!/bin/bash
#SBATCH --time=00:12:00		# Maximum time (HH:MM:SS)

echo simple.job running on `hostname`
sleep 600



Column


Code Block
[usr1@login1(viking) scratch]$ sbatch simple.job
Submitted batch job 147874
[usr1@login1(viking) scratch]$ squeue -u usr1
JOBID  PARTITION NAME     USER ST TIME NODES NODELIST(REASON)
147874 nodes     simple.j usr1 R  0:06 1     node170
[usr1@login1(viking) scratch]$ ls
simple.job slurm-147874.out
[usr1@login1(viking) scratch]$ cat slurm-147874.out
simple.job running on node170.pri.viking.alces.network



...