1836605 Members
1968 Online
110102 Solutions
New Discussion

Re: FTP

 
SOLVED
Go to solution
anand_51
Advisor

FTP

Hi All,
When i try to do ftp on one of my server, it is giving following errors. pl help me on this

/usr/lbin $ftp 10.10.8.145
ftp: 5,N/A,N/A]: not found.
ftp[3]: Mirror: not found.
ftp[5]: Mirror: not found.
ftp[7]: Back: not found.
ftp[8]: Syntax error at line 10 : `(' is not expected.

Regards,
Anand.
12 REPLIES 12
Wouter Jagers
Honored Contributor

Re: FTP

That kinda looks like some script called 'ftp'.

Could you try:
/usr/bin/ftp 10.10.8.145

Cheers
Wout
an engineer's aim in a discussion is not to persuade, but to clarify.
Peter Godron
Honored Contributor

Re: FTP

Anand,
please try:
/usr/bin/ftp 10.10.8.145

Suspect that you have an alias set up for ftp.

anand_51
Advisor

Re: FTP

Hi,
Again same error
/usr/lbin $/usr/bin/ftp 10.10.8.145
/usr/bin/ftp: 5,N/A,N/A]: not found.
/usr/bin/ftp[3]: Mirror: not found.
/usr/bin/ftp[5]: Mirror: not found.
/usr/bin/ftp[7]: Back: not found.
/usr/bin/ftp[8]: Syntax error at line 10 : `(' is not expected.
Dino_4
Frequent Advisor

Re: FTP


Hi Anand,

I don't understand, what you are trying to do.

# /usr/lbin --> is a directory

$ftp --> is a variable (a script you wrote, maybe)

the ip (guess it's the right one)

In your script ($ftp) seems to be sone errors.

Can you post the contens of $ftp??
anand_51
Advisor

Re: FTP

Hi Dino,
I just try to do normal FTP but it is giving errors


/home/tcb/anand $ftp 10.10.8.145
ftp: 5,N/A,N/A]: not found.
ftp[3]: Mirror: not found.
ftp[5]: Mirror: not found.
ftp[7]: Back: not found.
ftp[8]: Syntax error at line 10 : `(' is not expected.

Peter Godron
Honored Contributor

Re: FTP

Anand,
please post results of:
which ftp
file `which ftp`
ll `which ftp`

I assume your data before the $ is your current directory i.e. part of your prompt.
anand_51
Advisor

Re: FTP

Hi,
/home/tcb/anand $which ftp
/usr/bin/ftp
/home/tcb/anand $file `which ftp`
/usr/bin/ftp: ascii text
/home/tcb/anand $ll `which ftp`
-r-xr-xr-x 1 bin bin 114688 Nov 15 2004 /usr/bin/ftp
/home/tcb/anand $
Pete Randall
Outstanding Contributor

Re: FTP

file `which ftp`
/bin/ftp: PA-RISC1.1 shared executable dynamically linked

Your ftp has been replaced by a text file. Save the text file for later examination and copy the ftp binary from another machine.


Pete

Pete
Peter Godron
Honored Contributor
Solution

Re: FTP

Anand,
ftp should be a executable not ascii file !!
Please move the file and replace with file from backup or file from same OS version machine.

Also investigate how/who changed the file.

Please also read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33 on how to reward any useful answers given to your questions.
anand_51
Advisor

Re: FTP

Hi All,
It is working after replaced the file with new one. Thank You for you kind help
Peter Godron
Honored Contributor

Re: FTP

Anand,
that just leaves the task of assigning points and finding out how the problem was caused in the first place.

Study the faulty ftp script, perhpas that will give you a clue asto who wrote it and/or whta the purpose of the script was.
anand_51
Advisor

Re: FTP

issue is resolved