1. Running a Basic Job on DRAC HPC
Create a Job Script
Create a file named
job.shwith the following content:#!/bin/bash #SBATCH --time=00:15:00 #SBATCH --account=def-sponsor00 echo 'Hello, world!' sleep 1000 # Sleep for a thousand secondsSubmit the Job
Use the
sbatchcommand to submit your job script:sbatch job.shMonitor the Job
Check the status of your job using the
squeuecommand:squeue -u $USERCheck the Output
Once the job is complete, check the output file
serial_job.outfor results.cat slurm-<job_id>.outCancel Jobs
If you need to cancel a job, use the
scancelcommand:scancel <job_id>Check the Job Efficiency
To check the efficiency of your job, use the
seffcommand:seff <job_id>
Additional Resources
Last modified: 21 March 2025