ftp issue

Hi all,
I am trying to connect to ftp through the following shell script

ip='172.12.40.45'
user='oracele'
pw='oracle@7Hills'
ftp -n -i -v $ip<<EOF
user $user $pw
EOF

But i am getting the following message

[oracle@dbserver practice]$ /home/oracle/practice/ftptst
Connected to 172.12.40.45.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type

can anybody tell me how to connect to ftp using shell script.

cheers
RRK

which flavor r u using..??
I can see ur code is correct... and by o/p the prob is about user and apssword.

are u able to connect to ftp without the script... ( i mean on the console??? )

Hi ,
i am using linux.

i am able to connect to ftp without the script... ( i mean on the console??? )

cheers
RRK

I think user is also defined as a global variable somewhere ...i.e check your env or .profile file
If u dont want to search all these just change the varible user to some thing else ..just give it another name ...that will do it .

then u must be logged in....

try to execute ur remote commands... and chk...
dont worry with "KERBEROS_V4 rejected as an authentication type" msg.
it telling that ur KERBEROS version is not able to recoznise the auth type.. but sud be able to log in....

just try to execute ur command ( try ls on the remote server )... and tell us.. wht happenses...
eg

ip='172.12.40.45'
user='oracele'
pw='oracle@7Hills'
ftp -n -i -v $ip<<EOF
user $user $pw
ls
bye
EOF

hi,
working...
thank u.