awips2/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsyncGridsToCWF_client.sh
Steve Harris 97c4db937e 12.5.1-15 baseline
Former-commit-id: 8552902906 [formerly b13cbb7e00] [formerly 3904c4ccf5 [formerly 4909e0dd166e43c22a34d96aa744f51db8a7d6c0]]
Former-commit-id: 3904c4ccf5
Former-commit-id: 676ea3192f
2012-06-08 13:39:48 -05:00

27 lines
1.2 KiB
Bash

#!/bin/sh
################################################################################
# #
# Program name: rsyncGridsToCWF_client.sh #
# #
# Executes rsynceGridsToCWF.sh locally or remotely as needed #
# #
# Author: Juliya Dynina #
# #
# Revisions: #
# 04/25/12: Created Script #
################################################################################
if [ $# -lt 1 ] ;then
echo Invalid number of arguments.
echo Script stopped.
echo ./rsyncGridsToCWF_client.sh wfo
exit
fi
host_name=`hostname`
host_name=`echo $host_name | cut -c1-3`
if [ $host_name != "dx3" ] && [ $host_name != "dx4" ]; then
ssh dx3 "/awips2/GFESuite/bin/rsyncGridsToCWF.sh ${1}"
else
/awips2/GFESuite/bin/rsyncGridsToCWF.sh ${1}
fi