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.