Skip to content

Interactive job (srun)

An interactive job is launched on a compute node and provides you with a command line prompt. Interactive jobs are useful when debugging or interacting with an application. You will use the srun command to launch an interactive job. Once the job has started, commands can be executed utilizing resources on the local node.

srun --pty /bin/bash

s01 ~]$


Jobs submitted with srun --pty /bin/bash will be assigned the cluster default values of 1 CPU and 4096MB of memory. If you are part of an account, the account must also be specified; else you will run on the default free resources. If additional resources are required, they can be requested as options to the srun command.

The following example job requests 8GB of memory, 5 CPUs, and a runtime of 2 hours:

srun --mem-per-cpu=8GB --cpus-per-task=5 --time=02:00:00 --pty /bin/bash

s08 ~]$


Once done type `exit` to leave