I have a scenario where I need to download the previous day modified files from other server to my server through FTP . Could any one please send me the shell script for the same.
I used the following but I dont know how to proceed after this.
ftp -n -i -v $IP <<ENDOFinPUT >> ftpscript.txt
quote user $user
quote pass $password
passive
prompt
type binary
ls *.*
bye
ENDOFinPUT
exit;