Interactive Job
An interactive job in Slurm allows a user to get a command-line prompt on a computing resource.
Interactive jobs are particularly useful for compilation, environment preparation, debugging and data movements.
To submit an interactive job, you must use the srun command with some specific parameters.
The following example launches an interactive session on std partition with an 8 hours timelimit and minimal resources :
srun -p std -n 1 -N 1 --time=8:0:0 --pty /bin/bash
info
The important part here is the usage of 'srun' combined with the last option '--pty /bin/bash' which requires Slurm to open a terminal session with a command-line interpreter.
In order to terminate your interactive session, simply type exit or the keyboard combination Ctrl+D.