Sample qsub
Script
# Set script linux shell - "bash" is recommended
#$ -S /bin/bash
# Name of queued job and output files
#$ -N regression_tests_demo
# Send successful job completion message to this email address
#$ -m e -M defalco@cornell.edu
# To make sure that the .e and .o file arrive in the working directory
#$ -cwd
# Put farm node name and start timestamp in log file
echo -e "\nOn $HOSTNAME, Starting at: " `date` "\n"
# Initalize your runtime environment
. /nfs/acc/libs/cesr/cesr_online.bashrc
# Move into directory to run the executable, if necessary
cd /nfs/acc/user/amd275/sge_demo/regression_tests
# Executable to run
./scripts/run_tests.py
# Put farm node name and end timestamp in log file
echo "On $HOSTNAME, Done at: " `date`