#!/bin/sh
echo ****start setenv
export BASE_DIR=/opt/temp/apps
#echo base dir $BASE_DIR
export JAR_DIR=/opt/temp/apps/lib
#echo log dir $LOG_DIR
export JAVA_HOME=/opt/java/jdk1.5.0_03
#echo java home $JAVA_HOME
export BUILD_AP="$JAVA_HOME/bin/java"
export CLASSPATH=$APP_DIR:
echo $CLASSPATH
echo ******END variables****
FTP_HOST=host name
FTP_USER=username
FTP_PASSWORD=password
FTP_SOURCE=$1
FTP_DESTINATION=/opt/temp/apps/
ftp -n $FTP_HOST <<END
quote USER $FTP_USER
quote PASS $FTP_PASSWORD
cd $FTP_DESTINATION
pwd
put $FTP_SOURCE
bye
END