1. preparing the script by copy the template to your home
cd cp -r /project/common/Introduction-to-LANTA/firstJob/ .
2. navigating to firstJob directory
cd firstJob/
3. modify the script according to your registration detail, i.e. change lt123456
(line 7) to your own project ID.
#!/bin/bash -l #SBATCH -p compute #specify partition #SBATCH -N 1 #specify number of nodes #SBATCH --cpus-per-task=1 #specify number of cpus #SBATCH -t 1:00:00 #job time limit <hr:min:sec> #SBATCH -J fisrtjob #job name #SBATCH -A lt123456 #specify your account ID echo "Welcome to LANTA" echo "use 'myqueue' command to check job status" sleep 60
4. submitting the job to the queueing system by using
sbatch submit.sh
5. use myqueue
command to check your job status, see Checking Job status for mor detail.