bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ftp mdtm: invalid command


From: Felipe G. Nievinski
Subject: Re: ftp mdtm: invalid command
Date: Wed, 2 Aug 2023 19:30:08 -0300

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 <simon@josefsson.org> wrote:
Erik Auerswald <auerswal@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
>
>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]