Operating System - HP-UX
1752490 Members
5661 Online
108788 Solutions
New Discussion юеВ

Can copy a file in a ftp session?

 
Fenglin
Regular Advisor

Can copy a file in a ftp session?

Hi

Is it possible to copy a file when one is in a ftp session?

I do a help. I can't see any commands which can copy files.

Regards
Feng Lin
17 REPLIES 17
Michal Kapalka (mikap)
Honored Contributor

Re: Can copy a file in a ftp session?

hi,

could you please get more detaild, what does mean to copy a file in FTP session ??

ftp commands can be found :

http://www.cs.colostate.edu/helpdocs/ftp.html

mikap
Steven Schweda
Honored Contributor

Re: Can copy a file in a ftp session?

Copy a file from where to where? On the
client or the server (or both)?

> [...] I can't see any commands which can
> copy files.

It _is_ called the File _Transfer_ Protocol,
not the File _Copy_ Protocol.
Fenglin
Regular Advisor

Re: Can copy a file in a ftp session?

Hi

What I meant was I already ftped to a server.
I am at a command prompt at a specific directory like the following
and I want to copy a file in the same directory. Is this possible?
ftp>


Regards
Feng Lin
Steven Schweda
Honored Contributor

Re: Can copy a file in a ftp session?

> [...] and I want to copy a file in the same
> directory.

On the server? I'll try again.

> Copy a file from where to where? [...]

Generally, an FTP server will not let an FTP
user execute arbitrary commands (like, say,
"cp").

> I do a help. [...]

What does "quote help" tell you?
Fenglin
Regular Advisor

Re: Can copy a file in a ftp session?

Hi Steven

WHen I do 'help', there is no 'cp' commands available. That is why I am wondering whether it is possible.

Regards
Feng Lin
Steven Schweda
Honored Contributor

Re: Can copy a file in a ftp session?

> WHen I do 'help' [...]

WHAT DID I ASK? "help" or "quote help"?
Did I ask what you _saw_ or what you
_thought_ about what you saw?

I don't know what this FTP server is. I
don't know what it can do or what it will do.
I can't talk to it. All I can do is talk to
you, but you don't seem to telling me
anything useful.
piyush mathiya
Trusted Contributor

Re: Can copy a file in a ftp session?

Hi Feng,

This is not possible, only the posibility is to use indirect way to do so...

ftp> get 1.txt
200 PORT command successful.
150 Opening BINARY mode data connection for 1.txt (44 bytes).
226 Transfer complete.
44 bytes received in 0.01 seconds (3.61 Kbytes/s)
ftp> put 1.txt
200 PORT command successful.
150 Opening BINARY mode data connection for 1.txt.
226 Transfer complete.



I know that this is not the way we should do...:)
Fenglin
Regular Advisor

Re: Can copy a file in a ftp session?

Hi piyush

Thanks for your answer.

You got my point though it does not solve my problem

Regards
Feng Lin
Steven Schweda
Honored Contributor

Re: Can copy a file in a ftp session?

> [...] only the posibility [...]

The word "only" is a dangerous thing.

man ftpd
or:

http://docs.hp.com/en/B2355-60130/ftpd.1M.html

Look for "SITE EXEC".

If I could get a straight answer to a simple
question, then I might be able to tell you if
you could use it. But apparently I can't.

> [...] it does not solve my problem

Hard to do with no useful information.