Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| tutorials_scheduler [2025/05/27 19:31] – docuadmin | tutorials_scheduler [2025/05/27 19:32] (current) – [Non-interactive Jobs] docuadmin | ||
|---|---|---|---|
| Line 55: | Line 55: | ||
| #!/bin/bash | #!/bin/bash | ||
| | | ||
| - | #SBATCH -N2 | + | #SBATCH -N 2 |
| #SBATCH -n 10 | #SBATCH -n 10 | ||
| | | ||
| Line 61: | Line 61: | ||
| echo "The following ' | echo "The following ' | ||
| srun hostname | sort | srun hostname | sort | ||
| + | |||
| + | Submit a batch job by supplying the batch script as the first argument of the ' | ||
| + | |||
| + | sbatch printhostname.sub | ||
| Output: | Output: | ||
| Line 77: | Line 81: | ||
| node2 | node2 | ||
| - | Submit a batch job by supplying the batch script as the first argument of the ' | ||
| - | sbatch printhostname.sub | ||