|
Jeff,
It is implied that the FTP server type (IBM
i, Windows, Linux, etc) has a bearing on what is acceptable. I wouldlike
to use a way that works no matter what the server side is. Antyone know?The server will make a difference because there is no standard command in
the RFC for comments.
However, there is a standard command all servers should support called
NOOP. As implied, it performs no operation. What is it intended to be
used for is as a "keep alive" command so that sockets won't time out. When
sent to a server, it is just supposed to accept it and send back an OK
response.
I don't know that all servers will ignore text beyond the NOOP, but the
ones I just tried did. So you MAY be able to get by with using NOOP and a
space as the prefix to your comments. The actual RFC 959 text for the
command is:
NOOP (NOOP)
This command does not affect any parameters or previously
entered commands. It specifies no action other than that the
server send an OK reply.
I interpret that to mean you should be able to send parameters (your
comments) and have them ignored. And that is how the servers I tried
acted. But I don't know there is any guarantee all servers will act that
way.
Back in the days of early BASIC, where comments began with REM, a friend of
mine always began his programs with
10 REMARKABLE program that ...
because you didn't even need a space after the REM. But put at least one
space after your NOOP.
Doug
--
This is the PC Technical Discussion for IBM i (AS/400 and iSeries) Users
(PcTech) mailing list
To post a message email: PcTech@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/pctech
or email: PcTech-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/pctech.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.