#! /usr/bin/sh -x
#
#  Convenience script for using 'ftp' to copy files from one system to another.
#  Ftp will interactively wait for the password to be typed.  You cannot
#  put the password in this file -- ftp won't use it.
#
#  Define your Cluster node names here.  Do not define the name of the node
#  where these files are being copied from.
CLUSTER_NODES="ftsys1 ftsys2 ftsys1a ftsys2a"

#  Define the package directory where the files you want to copy reside.
PACKAGE_DIR="/etc/cmcluster/pkgA"

for NODE in $CLUSTER_NODES
do
ftp $NODE <<EOF1
root

cd $PACKAGE_DIR
lcd $PACKAGE_DIR
prompt
mput *
quit
EOF1
done

