Job submission directives
We have now submitted a basic job script to the scheduler system - there are many advanced functions available to users when submitting jobs - which can be included either in the job submission script, or in the qsub command.
Open the basic job script for editing to include a job script name - useful for describing the job script application etc.
Submission directives can be added to a job script by including #$ at the beginning of a line, e.g.:
#!/bin/bash
#$ -N helloworld.$JOB_ID
echo "Starting job at `date`"
sleep 30
echo "Finishing job at `date`"
We've added the line:
#$ -N helloworld
Which will inform the scheduler we wish to name our job helloworld.
Including the -N <name> directive via the qsub command will provide the same result, e.g.:
[alces-cluster@login1(awscluster) ~]$ qsub -N helloworld myfirstjob.sh
Your job 5 ("helloworld") has been submitted