Re: issue with ftp::Quote STATUS .
- From: see@xxxxxxxxxxxxxxxxx (Douglas Wells)
- Date: Thu, 26 Apr 2007 18:17:59 -0400 (EDT)
In article <1177597912.942299.215730@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, Patrick Finnegan <finnegan.patrick@xxxxxxxxx> writes:
Running Tcl 8.4.14 on Windows XP.
I am trying to use the ftp:Quote option to send native FTP commands to
an FTP server but it returns "command not understood".
Works from the ftp command line on tyhe same machines.
(bin) 65 % ftp::Pwd $session
/
(bin) 66 % ftp::Quote $session STATUS
500 'STATUS': command not understood.
Output from command line FTP.
ftp> status
Connected to 12.34.56.78..
Type: ascii; Verbose: On ; Bell: Off ; Prompting: On ; Globbing: On
Debugging: Off ; Hash mark printing: Off .
If you are going to use FTP commands directly, you really should
study the FTP protocol (RFC 959), otherwise you are operating in
the dark.
You will also find it instructive to ask your ftp command to show
you the actual protocol interactions as the ftp client is interpreting
the commands that your type. (I don't use Windows XP, but the
command is probably something like "debug".) In this particular
case, you will find that the ftp client is almost certainly simply
reporting to you its current state based on its local information.
There is probably *no* FTP command transmitted whatsoever (for
this particular client command).
There is an FTP 'STAT' command, but I don't know if it does what
you want as it's not clear what you are really trying to do.
Also, in response to another suggestion in this thread, the case
of the command does not matter. FTP, as most Internet protocols,
is case insensitive. (Thus, you could use STAT, stat, Stat, or
even sTaT over the wire.)
- dmw
--
.. Douglas Wells . Connection Technologies .
.. Internet: -sp9804- -at - contek.com- .
.
- Follow-Ups:
- Re: issue with ftp::Quote STATUS .
- From: Patrick Finnegan
- Re: issue with ftp::Quote STATUS .
- References:
- issue with ftp::Quote STATUS .
- From: Patrick Finnegan
- issue with ftp::Quote STATUS .
- Prev by Date: [tkpng] getting issues with -alpha
- Next by Date: Re: issue with ftp::Quote STATUS .
- Previous by thread: Re: issue with ftp::Quote STATUS .
- Next by thread: Re: issue with ftp::Quote STATUS .
- Index(es):
Relevant Pages
|