Interactive Jobs
Interactive jobs give you a shell directly on a compute node — useful for testing, debugging, or running applications that need direct input.
Basic Interactive Session
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --pty bash
On a Specific Node
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --nodelist=compute-0-12 --pty bash
With GUI (X11 Forwarding)
Make sure you connected to the login node with ssh -X first:
srun --ntasks=1 -p power-general-shared-pool -A public-users_v2 --qos=public --x11 --pty bash
With Multiple CPUs
srun --ntasks=1 --cpus-per-task=4 -p power-general-shared-pool -A public-users_v2 --qos=public --nodes=1 --pty bash
Important
- Interactive jobs consume resources for as long as your session is open — exit when done
- If your connection drops, the interactive job will terminate
- For long-running work, use
sbatchinstead