I am going to transfer file from UNIX directory to remote windows location and i wrote the script but i am getting the error as 'FTP: not found' or i am getting this error 'The file path is not found'.
Please help me to resolve this problem as early as possible.(urgent).
my script is,
LOCAL_PATH='/apps/dw.....'
HOST='AGCY'
USER='..'
PWD='...'
PATH='\TestAGCY'
cd $LOCAL_PATH
ftp -n $HOST << END_SCRIPT
quote USER $USER
quote PASS $PWD
cd $PATH
prompt off
mput Extract_File.out
exit
END_SCRIPT
FTP without user name / password can be done by ssh configuration. First you need to make ssh connection between two servers, then you able to do SFTP without password.
Command : sftp username@server_ip
For simple file transfer without user name / password use scp.
FTP has a facility to read login and password from a file called ".netrc".
man .netrc .
Permissions on such a file should be 600 and owned by the user or (preferably) root. Most FTP implementations will ignore a .netrc file which has the wrong permissions.