Simple Single Threaded Job Script

From the command line create a new file called using Nano or VIM. Below is a simple script which sets your SGE environment and runs the "date" and "sleep" commands. Replace the commands with your program commands.

#$ -N name_of_your_job
#$ -cwd
#$ -j y
#$ -S /bin/bash

. /etc/profile.d/

module load shared app1 app2 app3 app4
# If any environment variable(s) need to be set do the following (but leave off the # sign):
# DATAPATH=/some/directory
# export DATAPATH

date sleep 10 date

-- AdminUser - 27 Jun 2016
Topic revision: r4 - 28 Aug 2018, AdminUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback