I have the following ftp script to get files from a remote location.
However, on running the script I find that I am not even able to connect to ftp server.
I am able to connect to ftp server using other GUI ftp tools like WS_FTP using the same IP.
IP used here is a dummy IP.
What can go wrong here?
#!/bin/ksh
ftp -vnd "111.111.111.111" << ++ 1>>readme.log 2>&1
user "me" "passwd"
prompt off
ascii
cd /f001/sftp/abc
lcd /export/home/abc
get BSH`date +%y%m%d`.HIST
bye
++