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 18:36] – [Non-interactive Jobs] docuadmin | tutorials_scheduler [2025/05/27 19:32] (current) – [Non-interactive Jobs] docuadmin | ||
|---|---|---|---|
| Line 48: | Line 48: | ||
| #SBATCH -n 10 | #SBATCH -n 10 | ||
| ... | ... | ||
| + | |||
| + | Following the ''# | ||
| + | |||
| + | File '' | ||
| + | |||
| + | #!/bin/bash | ||
| + | | ||
| + | #SBATCH -N 2 | ||
| + | #SBATCH -n 10 | ||
| + | | ||
| + | echo "This command is executed on $(' | ||
| + | echo "The following ' | ||
| + | srun hostname | sort | ||
| + | |||
| + | Submit a batch job by supplying the batch script as the first argument of the ' | ||
| + | |||
| + | sbatch printhostname.sub | ||
| + | |||
| + | Output: | ||
| + | |||
| + | This command is executed on node1 | ||
| + | The following ' | ||
| + | node1 | ||
| + | node1 | ||
| + | node1 | ||
| + | node1 | ||
| + | node1 | ||
| + | node2 | ||
| + | node2 | ||
| + | node2 | ||
| + | node2 | ||
| + | node2 | ||