Former-commit-id:8552902906
[formerlyb13cbb7e00
] [formerly3904c4ccf5
[formerly 4909e0dd166e43c22a34d96aa744f51db8a7d6c0]] Former-commit-id:3904c4ccf5
Former-commit-id:676ea3192f
27 lines
1.2 KiB
Bash
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
|