Hi.
I have this issue with an ftp command that I can run successfully using command prompt in Windows but when using a file to run the script unix will always return log in error messages.
Here is what I'm doing:
In command prompt I'm running this:
> ftp -s:c:\load_test_file.scr
And my file..."load_test_file.scr" is as simple as:
open 111.1.1.111
user
myuser
mypass
cd /path/path_folder
put c:\filename.csv
quit
Here is the whole output in command prompt:
C:\>ftp -s:c:\load_test_file.scr
ftp> open 111.1.1.111
Connected to 111.1.1.111.
220 <servername> FTP server ready.
User (111.1.1.111
none)):
331 Password required for user.
530 Login incorrect.
Login failed.
ftp> myuser
Invalid command.
ftp> cd /path/path_folder
530 Please login with USER and PASS.
ftp> put c:\filename.csv
530 Please login with USER and PASS.
530 Please login with USER and PASS.
ftp> quit
221 Goodbye.
IS there anything that I may need to fix in my code?
Thanks in advance!
T.