From 57d8d5794d071c905cdbcb8860eb0ae78778be68 Mon Sep 17 00:00:00 2001 From: Ana Rivera Date: Thu, 18 Dec 2014 14:13:24 +0000 Subject: [PATCH] VLab Issue #5704 - Update NWPS: runManualNWPS_OutsideAWIPS.sh; fixes #5704 Change-Id: I32484682f1eb2bccd286673a1ea15cebd8df9320 Former-commit-id: b016c3bcb587c04b4d0e5d21ecce6f5e6bb3e75d --- .../nwps/bin/runManualNWPS_OutsideAWIPS.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/edexOsgi/com.raytheon.uf.tools.gfesuite/nwps/bin/runManualNWPS_OutsideAWIPS.sh b/edexOsgi/com.raytheon.uf.tools.gfesuite/nwps/bin/runManualNWPS_OutsideAWIPS.sh index 7e2b8b3261..f5e9f8ab19 100644 --- a/edexOsgi/com.raytheon.uf.tools.gfesuite/nwps/bin/runManualNWPS_OutsideAWIPS.sh +++ b/edexOsgi/com.raytheon.uf.tools.gfesuite/nwps/bin/runManualNWPS_OutsideAWIPS.sh @@ -1,6 +1,7 @@ #!/bin/bash NWPSLOCAL="/awips2/GFESuite/nwps" + if [ ! -e ${NWPSLOCAL}/input ] then mkdir ${NWPSLOCAL}/input @@ -16,14 +17,14 @@ then mkdir ${NWPSLOCAL}/var chmod 777 ${NWPSLOCAL}/var fi -source /awips2/GFESuite/bin/run/site.sh + logfile=${NWPSLOCAL}/logs/nwps_runManual_Outside_AWIPS.log rm -f ${NWPSLOCAL}/logs/* rm -f ${NWPSLOCAL}/wcoss/* PATH="/awips2/GFESuite/bin:/bin:/usr/bin:/usr/local/bin" -SITEID=${GFESUITE_SITEID} -siteid=$(echo ${SITEID} | tr [:upper:] [:lower:]) +siteid=$(hostname|cut -c5-7) +SITEID=$(echo ${siteid} | tr [:lower:] [:upper:]) SSHARGS="-x -o stricthostkeychecking=no" SCPARGS="-o stricthostkeychecking=no" @@ -64,6 +65,7 @@ function logit () { ### RUN OPTIONS: if [ -e ${NWPSLOCAL}/var/inp_args ] + then inp_args=`cat ${NWPSLOCAL}/var/inp_args` @@ -87,6 +89,8 @@ then logit "Arguments are: $RUNLEN $WNA $NEST $GS $WINDS $WEB $PLOT $DELTAC $HOTSTART $WATERLEVELS $CORE $EXCD $WHERETORUN" logit " " + rm -f ${NWPSLOCAL}/var/inp_args + else logit "No arguments or arguments file provided. No run to process. Exiting."