![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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??? ) |
|
#3
|
|||
|
|||
|
Hi ,
i am using linux. i am able to connect to ftp without the script... ( i mean on the console??? ) cheers RRK |
|
#4
|
|||
|
|||
|
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 . |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
hi,
working... thank u. |
|||
| Google The UNIX and Linux Forums |