The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: FTP Scripts
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 11-30-2007
raghav1982 raghav1982 is offline
Registered User
 

Join Date: Sep 2007
Posts: 87
Yes Thanks for the info :

But it is kind of critical in touching those files in my environment

I will post my code here , can you please let me know what went wrong here :

#!/bin/sh
echo " Please Enter the FTP Server Address :"
read FTP_SRVR
echo "Please Enter the User id :"
read FTP_USR
echo "Please enter the FTP Password :"
read FTP_PWD
ifile="/home/app/ins/seven/rem/"
ofile="/home/app/ins/six/ddf"
ftp <<EOF
open $FTP_SRVR
user $FTP_USR
pass $FTP_PWD
ascii
cd $ifile
lcd "$ofile"
mget *.*
bye
EOF
Reply With Quote