Is it possible to nest a set of FTP commands in a case statement?
I cannot get this portion of my script to function. The korn shell
returns the following message: "Syntax error at line 102 : `<' is not
matched"
#########################################################
function buildlib {
#########################################################
if [[ $# != 3 ]];then
print "${0} called with bad number of parameters -- terminating"
exit 1
fi
DestLib=${1}
SourceFusr=${2}
SourceLib=${3}
# Check for Unix or Windows
case ${DestLib} in
##############
${UnixMods})
##############
godir ${SourceFusr}/${SourceLib}/SRC
;;
##############
${WinMods})
##############
#
# stack ftp commands to get the files from the NT server
#
/usr/bin/ftp -i ${NTPC} << GET-EOF
ascii
mget ${SourceFusr}/${E_Devel}/${SourceLib}/src/*
bye
GET-EOF
;;
##############
*)
##############
print "Unidentified Destination library: ${DestLib}"
exit 1
;;
esac
# <more code here, not important>
Any help would be appreciated.Quote:} # function buildlib
Sent via Deja.com http://www.deja.com/
Before you buy.