1 |
#!/bin/sh |
2 |
|
3 |
# Copyright (c) Members of the EGEE Collaboration. 2009. |
4 |
# See http://www.eu-egee.org/partners/ for details on the copyright |
5 |
# holders. |
6 |
# |
7 |
# Licensed under the Apache License, Version 2.0 (the "License"); |
8 |
# you may not use this file except in compliance with the License. |
9 |
# You may obtain a copy of the License at |
10 |
# |
11 |
# http://www.apache.org/licenses/LICENSE-2.0 |
12 |
# |
13 |
# Unless required by applicable law or agreed to in writing, software |
14 |
# distributed under the License is distributed on an "AS IS" BASIS, |
15 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 |
# See the License for the specific language governing permissions and |
17 |
# limitations under the License. |
18 |
# |
19 |
# Authors: Jan Just Keijser |
20 |
# NIKHEF Amsterdam, the Netherlands |
21 |
# janjust@nikhef.nl |
22 |
|
23 |
if test -n "${GLEXEC_LOCATION}" |
24 |
then |
25 |
BASEDIR="${GLEXEC_LOCATION}" |
26 |
elif test -n "${GLITE_LOCATION}" |
27 |
then |
28 |
BASEDIR="${GLITE_LOCATION}" |
29 |
else |
30 |
BASEDIR="/opt/glite" |
31 |
fi |
32 |
|
33 |
|
34 |
cd ${BASEDIR} |
35 |
export GLEXEC_ENV=`${0%/*}/glexec_wrapenv.pl` |
36 |
exec ${BASEDIR}/sbin/glexec ${0%/*}/glexec_unwrapenv.pl -- $@ |