forked from cherepan/Tau-Polar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit
More file actions
executable file
·38 lines (38 loc) · 1.21 KB
/
Copy pathsubmit
File metadata and controls
executable file
·38 lines (38 loc) · 1.21 KB
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
#PBS -u cgrimault
#! /bin/bash
if [ "${1}" == "--help" ]; then
echo " "
echo " "
echo "--------------------------------------------------------------------------------------------------- "
echo "Options for running this configuration file:"
echo "--help Prints this message"
echo "Job name Parse executable name to be submitted as a parameter"
echo "<run time> --short; --medium; --long; Default: --short"
echo " "
else
que="cms_local_short"
for var in $@ ; do
if [ "${var}" == "--short" ]; then
que="cms_local_short"
fi
if [ "${var}" == "--medium" ]; then
que="sbg_local_mdm"
fi
if [ "${var}" == "--long" ]; then
que="cms_local"
fi
done
export HOME=$(pwd)
jName=${1}
var=${1}
output="out_${1}.o"
error="err_${1}.e"
echo "Print out system variables: "
echo "Working dir: $HOME"
echo "Job name: ${jName} "
echo "que type: ${que} "
echo "output: ${output} "
echo "error: ${error} "
qsub -q ${que} -o ${output} -e ${error} -N ${jName} -v outfile=${jName} qsub_submit.sh
fi
#-v FOO="hello",BAR="world"