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 <si...@josefsson.org> wrote:

> Erik Auerswald <auers...@unix-ag.uni-kl.de> 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
> >
> >
>
  • ftp mdtm: i... Felipe G. Nievinski
    • Re: ft... Erik Auerswald
      • Re... Felipe G. Nievinski
      • Re... Simon Josefsson via Bug reports for the GNU Internet utilities
        • ... Felipe G. Nievinski
        • ... Erik Auerswald
          • ... Felipe G. Nievinski
            • ... Simon Josefsson via Bug reports for the GNU Internet utilities

Reply via email to