FTP Transfer error

Hi !
I created a similar script as shown below to automate an FTP transfer and encountered errors. Appreciate any advice to resolve this issue.

The script:

#!/usr/bin/ksh
ftp 'IP ADD' << cmd
user 'user' 'pass'
lcd /home/data
get 'FileA' FileB
quit
cmd

Connected to 'IP_ADD'.
220 Connection will close if idle for more than 5 minutes.
331 Send password please.
530 PASS command failed
Login failed.
Local directory now /home/data
200 Representation type is Image
200 Port request OK.
530 Not logged in.
221 Quit command received. Goodbye.

http://www.unix.com/shell-programming-scripting/44899-shell-script-ftp.html#post302144031

It is good to search/read other posts and see if other similar problems have already been addressed.

Hi,

There is no ./netrc file to be found in my home folder.

Is there any other way to automate the FTP...

Thanks
Cosec

Then create one. :slight_smile: