Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:services:application_services:high_performance_computing:running_jobs_slurm [2019/06/18 10:54]
tehlers [Exclusive jobs]
en:services:application_services:high_performance_computing:running_jobs_slurm [2019/07/09 17:48] (current)
mboden [Using Job Scripts] #SBATCH at top of the script
Line 156: Line 156:
 ====  Using Job Scripts ​ ==== ====  Using Job Scripts ​ ====
  
-A job script is a shell script with a special comment section: In each line beginning with ''#​SBATCH''​ the following text is interpreted as a ''​sbatch''​ option. Here is an example:+A job script is a shell script with a special comment section: In each line beginning with ''#​SBATCH''​ the following text is interpreted as a ''​sbatch''​ option. These options have to be at the top of the script before any other commands are executed. Here is an example:
  
 <​code>​ <​code>​