Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
habrok:advanced_job_management:interactive_jobs [2023/07/04 14:02] adminhabrok:advanced_job_management:interactive_jobs [2025/01/08 10:18] (current) – Fix broken link (thanks Jelte!) pedro
Line 1: Line 1:
 ====== Interactive jobs ====== ====== Interactive jobs ======
  
-As described in [[peregrine:job_management:scheduling_system#starting_tasks|the section about srun on the page about job scripts]], srun can be used in your job script to launch tasks. However, you can also use srun on the login nodes to run tasks in an interactive way on one of the compute nodes, without having to write a job script. The srun can take more or less the same arguments as sbatch, i.e. the same options you can put in your job script, allowing to specify the requirements for this interactive job.+As described in [[habrok:job_management:scheduling_system#starting_tasks|the section about srun on the page about job scripts]], srun can be used in your job script to launch tasks. However, you can also use srun on the login nodes to run tasks in an interactive way on one of the compute nodes, without having to write a job script. The srun can take more or less the same arguments as sbatch, i.e. the same options you can put in your job script, allowing to specify the requirements for this interactive job.
  
 This is a very simple example that demonstrates how it works, it will just run the command hostname on the allocated compute node: This is a very simple example that demonstrates how it works, it will just run the command hostname on the allocated compute node: