Basic job script

Job scripts are typically stored in the users home directory, usually shared across the Clusterware environment. A job script usually takes the form of a simple shell script containing a list of tasks to perform in order to run your job or application. These may include simple commands (e.g. printing a status message, copying or moving files, etc.) or calling a Gridware application to execute with parameters. An example jobscript is shown below:

#!/bin/bash
echo "Job starting at `date`"
sleep 30
echo "Job finished at `date`"

Lines preceded by a # character are interpreted as comments and are ignored by both the shell and grid-scheduler as the script is submitted and executed.