update scripts

git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_staging@2242 123451ca-8445-de46-9d55-352943316053
diff --git a/pregelix/pregelix-core/src/main/resources/scripts/startcc.sh b/pregelix/pregelix-core/src/main/resources/scripts/startcc.sh
index 6dab68d..fe2551d 100644
--- a/pregelix/pregelix-core/src/main/resources/scripts/startcc.sh
+++ b/pregelix/pregelix-core/src/main/resources/scripts/startcc.sh
@@ -6,7 +6,7 @@
 
 #Get the IP address of the cc
 CCHOST_NAME=`cat conf/master`
-CCHOST=`host $CCHOST_NAME|awk '{print $4}'`
+CCHOST=`bin/getip.sh`
 
 #Remove the temp dir
 rm -rf $CCTMP_DIR
diff --git a/pregelix/pregelix-core/src/main/resources/scripts/startnc.sh b/pregelix/pregelix-core/src/main/resources/scripts/startnc.sh
index 0f468c9..85727da 100644
--- a/pregelix/pregelix-core/src/main/resources/scripts/startnc.sh
+++ b/pregelix/pregelix-core/src/main/resources/scripts/startnc.sh
@@ -4,7 +4,7 @@
 #Get the IP address of the cc
 CCHOST_NAME=`cat conf/master`
 CURRENT_PATH=`pwd`
-CCHOST=`host $CCHOST_NAME|awk '{print $4}'`
+CCHOST=`bin/getip.sh`
 
 #Import cluster properties
 . conf/cluster.properties