Commit 2affec36 authored by ericw's avatar ericw
Browse files

Check that node is defined

parent 86bd74af
......@@ -6,7 +6,7 @@
# 1) environmental variables SAME_OK and SAME_ERROR are defined
# 2) . $CMS_PATH/cmsset_default.sh has already been run
#
# $Id: CMSSW_frontier.sh,v 1.4 2007/02/14 15:31:56 ericw Exp $
# $Id: CMSSW_frontier.sh,v 1.5 2007/02/15 17:21:16 ericw Exp $
#
uname -n
#
......@@ -83,12 +83,15 @@ fi
# Test access to squid
#
node=`grep proxy $CMS_PATH/SITECONF/local/JobConfig/site-local-config.xml | cut -f 3 -d/ | cut -f 1 -d: | head -1`
ping -c 1 $node
sping=$?
if [ $sping -ne 0 ]
if [ $node != "" ]
then
printf "CMSSW_frontier.sh: Error $sping from ping $node\n"
exit $SAME_ERROR
ping -c 1 $node
sping=$?
if [ $sping -ne 0 ]
then
printf "CMSSW_frontier.sh: Error $sping from ping $node\n"
exit $SAME_ERROR
fi
fi
#
# Set environmental variables for CORAL
......
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