Re: ftp mdtm: invalid command

"Felipe G. Nievinski" <[email protected]>
Newsgroups gmane.comp.gnu.inetutils.bugs
Message-ID <CAGXn2T13XdM_TX1H6ZLtO2_qMTHfK0LGoQFYpK-PJ4sMPrT7dw@mail.gmail.com>
Thanks for your suggestion, it works great!

I also found the "quote" command a useful alternative.

-Felipe.


On Wed, Aug 2, 2023 at 7:21 PM Simon Josefsson <[email protected]> wrote:

> Erik Auerswald <[email protected]> writes:
>
> > Hi,
> >
> > On Wed, Aug 02, 2023 at 04:01:00PM -0300, Felipe G. Nievinski wrote:
> >>
> >> I'm using the FTP utility, which supposedly supports the MDTM command
> (as
> >> per section 21.1 Standards of the documentation):
> >> https://www.gnu.org/software/inetutils/manual/inetutils.html
> >
> > This documentation pertains to the FTP server (ftpd).
> >
> >> However, when I try mdtm, it complains: "invalid command".
> >
> > The FTP client (ftp) does not implement the MDTM command, as documented
> in
> > <
> https://www.gnu.org/software/inetutils/manual/html_node/Ftp-commands.html
> >.
>
> The "modtime" ftp client command uses MDTM, so try this:
>
> ftp> modtime myfilename.ext
>
> /Simon
>
> >> For testing purposes, I've used the quote command:
> >>
> >>     quote "mdtm myfilename.ext"
> >>
> >> which returns a timestamp correctly.
> >>
> >> ftp> mdtm 20230518T213000Z.gps.new
> >> ?Invalid command
> >> ftp> quote "mdtm 20230518T213000Z.gps.new"
> >> 213 20230521012942
> >>
> >>
> >> So, the server recognizes the command correctly.
> >>
> >> Am I missing something?
> >
> > FTP server and client are different programs, even though they are part
> of
> > the same collection.
> >
> > Sorry that I cannot provide a better answer.
> >
> > Best regards,
> > Erik
> >
> >
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.