Commit 441f9f82 authored by Guillelmo Gomez Ceballos Retuerto's avatar Guillelmo Gomez Ceballos Retuerto
Browse files

A few modifications to make working the script on OSG

parent b073f50a
......@@ -6,16 +6,21 @@ echo "<h2>Stage out test for the Monte Carlo production</h2>"
echo "<h3>Sourcing the CMS environment</h3>"
export SCRAM_ARCH=slc3_ia32_gcc323
if [ -n "$VO_CMS_SW_DIR" ] ; then
echo "LCG site"
SW_DIR=$VO_CMS_SW_DIR
result=$?
elif [ -n "$OSG_APP" ] ; then
echo "OSG site"
SW_DIR=$OSG_APP/cmssoft/cms
source $OSG_GRID/setup.sh
result=$?
else
echo "ERROR: Neither VO_CMS_SW_DIR nor OSG_APP defined"
echo "ERROR: neither VO_CMS_SW_DIR nor OSG_APP defined"
exit $SAME_ERROR
fi
echo "<pre>"
source $SW_DIR/cmsset_default.sh
result=$?
result=$(expr $? + $result)
echo "</pre>"
if [ $result != 0 ]
then
......@@ -34,7 +39,7 @@ echo "<pre>"
echo "<h4>"
echo "WHOAMI?: $USER"
voms-proxy-info | grep identity
voms-proxy-info -all
echo "</h4>"
cd $SAME_SENSOR_HOME/cms-MC-test/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment