Dartmouth Research Computing & Data (RCD) logo
  • Home 
  • HPC 
  • AI 
  • Services 
  • About Us 

  •   Search this site
  •  
Hpc
  • Intro to HPC
    • What is HPC
    • What is DartFS
    • Logging into the Cluster
    • Linux - Helpful Commands
    • Environment Modules
    • Conda Tutorial
    • Submitting an Interactive Job
    • Estimating Job Resources
    • Submitting a Batch Job
    • Getting Help
  • Open OnDemand
    • Getting Started
    • Discovery Desktop
    • Job Composer
    • Jupyter
    • MATLAB
    • RStudio
  • Intro to HPC
    • What is HPC
    • What is DartFS
    • Logging into the Cluster
    • Linux - Helpful Commands
    • Environment Modules
    • Conda Tutorial
    • Submitting an Interactive Job
    • Estimating Job Resources
    • Submitting a Batch Job
    • Getting Help
  • Open OnDemand
    • Getting Started
    • Discovery Desktop
    • Job Composer
    • Jupyter
    • MATLAB
    • RStudio
  1.   Intro to HPC
  1. Home
  2. HPC
  3. Intro to HPC
  4. Submitting an Interactive Job (srun)

Submitting an Interactive Job (srun)

1 min read • 140 words

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.hpcc.dartmouth.edu $

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 ~]$

 Creating Your First Conda Environment
Estimating Job Resources 

     
Copyright © 2025 Dartmouth Research Computing & Data | Powered by Hinode.
Dartmouth Research Computing & Data (RCD)
Code copied to clipboard