Simple Job Submission

 

  1. Connect to Guillimin:
    ssh guillimin.hpc.mcgill.ca -l username
  2. In your home directory, create a "testDir" folder:
    mkdir testDir
    cd testDir
  3. Create a simple script file:
    touch script.sh
  4. Edit that script file with the editor of your choice (vi, nano, emacs, etc.). Simply put in there what you would interactively enter on the command line. Note: the "-A" option is to specify your account RAPid, which is your group allocation.
    #!/bin/bash
    #PBS -l nodes=1:ppn=1
    #PBS -l walltime=00:10:00
    #PBS -A xyz-123-aa
    #PBS -N JobTest
     
    cd $PBS_O_WORKDIR
    module load gcc/4.9.1
    env
    ### You can use the following syntax for your application
    #./your_app arg1 arg2 arg3 ... > output.txt
  5. Submit your job:
    qsub script.sh
  6. Check your job:
    1. Immediate status:
      qstat -u $USER
    2. A few minutes later, your job gets queued:
      showq -i -u $USER
    3. When finally running:
      showq -r -u $USER
  7. Once the job is done:
    • The output file will be: ~/testDir/JobTest.o<jobID>
    • The error file will be: ~/testDir/JobTest.e<jobID>