1 |
#!/bin/sh |
2 |
### |
3 |
### This is a example of PBS scripti, you can modify to submit your job |
4 |
### |
5 |
### Job name |
6 |
#PBS -N Tst |
7 |
### Specify a queue |
8 |
#PBS -q workq |
9 |
### Specify required resources |
10 |
#PBS -l ncpus=10 |
11 |
#PBS -l mem=10gb |
12 |
#PBS -l walltime=2:00 |
13 |
### Redirecting Output and Error files |
14 |
#PBS -e ./out.err |
15 |
#PBS -o ./out.log |
16 |
### Mailing ALerts: a -abort, b -begin execution and e -end execution |
17 |
#PBS -m abe |
18 |
|
19 |
### |
20 |
### This section is for debuging the script (it is not essentail) |
21 |
### |
22 |
# This job's working directory |
23 |
|
24 |
echo Working directory is $PBS_O_WORKDIR |
25 |
|
26 |
echo Running on host `hostname` |
27 |
echo Time is `date` |
28 |
echo Directory is `pwd` |
29 |
|
30 |
export LD_LIBRARY_PATH=/opt/intel/cmplrs/80.058/intel_cc_80/lib:/raid2/john/newEsys/esys/tools/boost/bin/boost/libs/python/build/libboost_python.so/intel-ia64/debug/shared-linkable-true |
31 |
export PATH=/usr/local/bin:${PATH} |
32 |
export PYTHON_LIB_PATH=/usr/local/lib/python2.2 |
33 |
export PYTHON_INCLUDE=/usr/local/include/python2.2 |
34 |
|
35 |
python $PBS_O_WORKDIR/escriptTest.py |
36 |
|
37 |
echo Done |