awips2/edexOsgi/com.raytheon.uf.tools.gfesuite/cli/rsyncGridsToCWF_client.sh
Ron Anderson 6b8705ee39 Omaha #4013 Change rsyncGrdsToCWF_client.sh to use any available EDEX cluster member
Change-Id: If2370cf73ec816bbac2a9b46ebbc8fb720eae805

Former-commit-id: e2f809e7b48f83b5abeb4dcda0c7e96a160e7fbf
2015-01-20 16:46:47 -06:00

25 lines
931 B
Bash

#!/bin/sh
################################################################################
#
# Program name: rsyncGridsToCWF_client.sh
#
# Executes rsynceGridsToCWF.sh locally or remotely as needed
#
# Author: Juliya Dynina
#
# Revisions:
# Date Ticket# Engineer Description
# ------------ ---------- ----------- -------------------------------
# 04/25/2012 jdynina Created Script
# 01/13/2015 #4013 randerso Changed to work on any EDEX
# cluster server
################################################################################
if [ $# -lt 1 ] ;then
echo Invalid number of arguments.
echo Script stopped.
echo ./rsyncGridsToCWF_client.sh wfo
exit
fi
# ssh to ec which will actually go to one of the servers in the EDEX cluster
ssh ec "/awips2/GFESuite/bin/rsyncGridsToCWF.sh ${1}"