The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 07-17-2008
ravi214u ravi214u is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 19
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