|
after that
#Authenticate the user
#user $username $password
user odsftp ods123$
#Change FTP mode to binary
bin
#echo "mode changed to binary"
#Change local directory
#lcd $localDir
lcd /work/tt
#Change remote directory to directory where source files are present
#cd $remoteDir
cd /apps/RStuff/ecm/amazon/adw/incoming/
#echo pwd
#echo "Directory changed ..."
#FTP all files to local directory with the specified filename format
#echo $remoteDir
#mget $strfilename
cp dq1234 /work/
#echo $strfilename
#echo `wc -l $localDir/$strfilename`
#Close FTP connection
close
bye
EOD
|