When i run the Shell , it has to Prompt the User for host server :
echo "Please enter the host server:"
read IP
echo "Please enter the User id :"
read user
echo "Please enter the password :"
read pass
type = ''ascii''
$ftp
open $IP
quote USER $user
quote PASS $pass
$type
This wont work can anyone modify this and let me know , Thanks
i am login to the Target server and asking the Source ftp server once it login just giving the directory name and get some files from source directory , is it possible , can you please give a sample code to fix this issue
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
Just Checking whether will it work , if i give the directory there in list of files
mean to say only the directory name and getting all the files in the directory
to the remote server?