-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·37 lines (29 loc) · 904 Bytes
/
run.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
#!/bin/bash
#
# GridPP and DIRAC: running CERN@school frame processing on the grid.
#
# This script gets passed to the grid job to run the CVMFS Python scripts.
#
# Parameters:
# * $1 : the CVMFS location of the CERN@school clustering software;
# * $2 : the Python script to run.
#
export PATH=$1/lib64/:$1/lib/:$PATH:$1/lib64/atlas/
echo "PATH is:"
echo $PATH
echo
# Add the numpy module from the CVMFS repo to the PYTHONPATH.
export PYTHONPATH=$1/lib64/python2.6/site-packages/:$1/lib/python2.6/site-packages/:$1/lib/:$1/lib64/:$1/lib64/atlas/
echo "PYTHONPATH is:"
echo $PYTHONPATH
echo
# Add the supporting libraries to the library linking path.
export LD_LIBRARY_PATH=$1/lib64/:$1/lib/:$1/lib64/atlas/:$LD_LIBRARY_PATH
echo "LD_LIBRARY_PATH is:"
echo $LD_LIBRARY_PATH
echo
echo "Running the script:"
echo $2
echo
# Run the Python script in the CVMFS directory.
/usr/bin/python $1/$2 ./. ./.