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 > >