We are using the following scripts (test and test.in)
to run some ftp job. User claims the scripts have
been working fine until now. I tried to login
manually with USER/PASSWD, it login/transfer file successfully. But
running this script gets error:
530-331 Password required for (null).
530 530 Login incorrect.
Login failed.
503 Login with USER first.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
script test:
ctlf=/home/psft/hr/bin/test.in; export ctlf
ftp -n < $ctlf
exit 0
script test.in:
open IPADDRESS
user USERNAME PASSWRD
put /home/psft/interface/hr/TEST.csv
bye
I tried different syntex
ftp -n <<EOF
open IPADDRESS
user USER PASSWD
put /home/psft/interface/hr/TEST.csv
close
bye
EOF
but got same error. Is there something on the server that could be set up to restrict the access through script?
Thanks in advance.
to run some ftp job. User claims the scripts have
been working fine until now. I tried to login
manually with USER/PASSWD, it login/transfer file successfully. But
running this script gets error:
530-331 Password required for (null).
530 530 Login incorrect.
Login failed.
503 Login with USER first.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
script test:
ctlf=/home/psft/hr/bin/test.in; export ctlf
ftp -n < $ctlf
exit 0
script test.in:
open IPADDRESS
user USERNAME PASSWRD
put /home/psft/interface/hr/TEST.csv
bye
I tried different syntex
ftp -n <<EOF
open IPADDRESS
user USER PASSWD
put /home/psft/interface/hr/TEST.csv
close
bye
EOF
but got same error. Is there something on the server that could be set up to restrict the access through script?
Thanks in advance.