sacct, scancel, srun: add page (#4600)

This commit is contained in:
Caughlin Bohn
2020-10-13 06:09:06 -05:00
committed by GitHub
parent a00334e5ad
commit 91fd123241
3 changed files with 48 additions and 0 deletions

16
pages/linux/srun.md Normal file
View File

@@ -0,0 +1,16 @@
# srun
> Create an interactive slurm job or connect to an existing job.
> More information: <https://slurm.schedmd.com/srun.html>.
- Submit a basic interactive job:
`srun --pty /bin/bash`
- Submit an interactive job with different attributes:
`srun --ntasks-per-node={{num_cores}} --mem-per-cpu={{memory_MB}} --pty /bin/bash`
- Connect to a worker node with a job running:
`srun --jobid={{job_id}} --pty /bin/bash`