UNIX users can use a shell script to propagate the source script information to the storage systems.
A shell script like the following can be used to propagate the source script information to the storage systems.
#!/bin/sh
# Check for the source file
if [ "$#" != "1" ]
then
echo "Usage: $0 <source_file>"
exit 1
fi
if [ ! -r $1 ]
then
echo "Cannot open source file \"$1\""
exit 1
fi
while [ 1 ]
do
echo Hit ctrl-c to terminate program when all filers have been entered.
# Gather up filer and passwd from user
printf "File Server: "
read FILER
printf "Password: "
read PASSWD
stty -echo
stty echo
printf "\n"
# Now issue the commands in the source script to
# the remote filer.
while read cmd
do
echo Issuing command \"$cmd\" to filer $FILER
rsh $FILER -l root:$PASSWD "$cmd" < /dev/null
done < $1
printf "\n"
done