Commit 568f5e7c authored by Guillelmo Gomez Ceballos Retuerto's avatar Guillelmo Gomez Ceballos Retuerto
Browse files

A few modifications to make the script nicer

parent 441f9f82
...@@ -5,15 +5,15 @@ echo "<h2>Stage out test for the Monte Carlo production</h2>" ...@@ -5,15 +5,15 @@ echo "<h2>Stage out test for the Monte Carlo production</h2>"
# Source the CMS environment # Source the CMS environment
echo "<h3>Sourcing the CMS environment</h3>" echo "<h3>Sourcing the CMS environment</h3>"
export SCRAM_ARCH=slc3_ia32_gcc323 export SCRAM_ARCH=slc3_ia32_gcc323
if [ -n "$VO_CMS_SW_DIR" ] ; then if [ -n "$OSG_APP" ] ; then
echo "LCG site"
SW_DIR=$VO_CMS_SW_DIR
result=$?
elif [ -n "$OSG_APP" ] ; then
echo "OSG site" echo "OSG site"
SW_DIR=$OSG_APP/cmssoft/cms SW_DIR=$OSG_APP/cmssoft/cms
source $OSG_GRID/setup.sh source $OSG_GRID/setup.sh
result=$? result=$?
elif [ -n "$VO_CMS_SW_DIR" ] ; then
echo "LCG site"
SW_DIR=$VO_CMS_SW_DIR
result=$?
else 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 exit $SAME_ERROR
...@@ -37,10 +37,10 @@ echo "</pre>" ...@@ -37,10 +37,10 @@ echo "</pre>"
echo "<h3>Invoking site test</h3>" echo "<h3>Invoking site test</h3>"
echo "<pre>" echo "<pre>"
echo "<h4>" echo "<h5>"
echo "WHOAMI?: $USER" echo "WHOAMI?: $USER"
voms-proxy-info -all voms-proxy-info -all
echo "</h4>" echo "</h5>"
cd $SAME_SENSOR_HOME/cms-MC-test/ cd $SAME_SENSOR_HOME/cms-MC-test/
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
......
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