The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix Arithmatic operation issue , datatype issue thambi Shell Programming and Scripting 23 02-19-2008 04:19 AM
awk issue on AIX ranj@chn Shell Programming and Scripting 1 07-04-2007 03:22 AM
Issue with rsh sriram.s AIX 5 07-03-2007 08:37 AM
FTP issue u263066 Shell Programming and Scripting 1 07-28-2006 03:18 AM
FTP Issue, Help please moe2266 UNIX for Dummies Questions & Answers 0 01-17-2006 07:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-06-2008
Registered User
 

Join Date: Dec 2006
Location: hyderabad
Posts: 102
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
Reply With Quote
Forum Sponsor
  #2  
Old 02-06-2008
Registered User
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 99
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??? )
Reply With Quote
  #3  
Old 02-06-2008
Registered User
 

Join Date: Dec 2006
Location: hyderabad
Posts: 102
Hi ,
i am using linux.

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


cheers
RRK
Reply With Quote
  #4  
Old 02-06-2008
Registered User
 

Join Date: Jan 2008
Posts: 14
I think I know what the problem is

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 .
Reply With Quote
  #5  
Old 02-06-2008
Registered User
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 99
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
Reply With Quote
  #6  
Old 02-06-2008
Registered User
 

Join Date: Dec 2006
Location: hyderabad
Posts: 102
hi,
working...
thank u.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0