Submit an interactive job with different attributes

srun

  • Create an interactive slurm job or connect to an existing job.
    More information: <https://slurm.schedmd.com/srun.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

srun --ntasks-per-node={{num_cores}} --mem-per-cpu={{memory_MB}} --pty /bin/bash

click the source code to copy install srun on any operating system with command-not-found.com