forked from aseetharam/common_scripts
-
Notifications
You must be signed in to change notification settings - Fork 40
/
JRC.sh
executable file
·50 lines (35 loc) · 906 Bytes
/
JRC.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#script to create a submission script that then can easily be appended to.
# 05/23/2016
#Andrew severin
function printUsage () {
cat <<EOF
Synopsis
$scriptName [-h | --help] BATCH_NAME NUMBERofHOURS
Description
This is a bash script that generates the sub file quickly.
-h, --help
Brings up this help page
Author
Andrew Severin, Genome Informatics Facilty, Iowa State University
23 May, 2016
EOF
}
if [ $# -lt 2 ] ; then
printUsage
exit 0
fi
cat <<JOBHEAD > $1.sub
#!/bin/bash
#PBS -l nodes=1:ppn=16
#PBS -l walltime=$2:00:00
#PBS -N $1
#PBS -o \${PBS_JOBNAME}.o\${PBS_JOBID} -e \${PBS_JOBNAME}.e\${PBS_JOBID}
#PBS -m ae -M [email protected]
cd \$PBS_O_WORKDIR
ulimit -s unlimited
chmod g+rw \${PBS_JOBNAME}.[eo]\${PBS_JOBID}
module use /shared/modulefiles
module load LAS/parallel/20150922
JOBHEAD