Exercise 2: Create and submit a batch script
Practice creating and submitting batch scripts.
-
Use
microtext editor (or any other if you're an experienced Linux user) to open the scriptrun.shthat already exist in the workshop directory. -
In the bottom of the script, add:
-
Save it by hitting
CTRL + Sand thenCTRL + Qto exit nano. -
Submit the job using
sbatch -
Check the job status using
squeue --me -
Once completed, check the results by printing out the output file using
catcommand
Next: Allocating Resources →