Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FTP's VERBOSE Command

308 views
Skip to first unread message

Slinkeey

unread,
May 27, 2010, 11:36:23 AM5/27/10
to
Hello,

I have an FTP script that has the output redirected to a physical
file. The reason I do this is so that I can run a CL that loops
through it and warns the system operator if there was an error.

There are times that I don't care about the error. For instance,
sometimes I will GET a file, but it is not there. I really don't care
if the file is not there every time the script runs. For most
commands I can type VERBOSE before the command and then the FTP client
doesn't even report the error code. Then I type VERBOSE after the
command(s) to let the error codes come though.

This VERBOSE command appears to work for mostly everything in FTP
except for the GET command. Any insight?

Thanks,
Jeff

CRPence

unread,
May 27, 2010, 12:34:58 PM5/27/10
to

Although some very few might lurk here [like me, watching for the
once in a couple-months postings, to suggest posting elsewhere], the
most appropriate USA-centric USENET NG for posts related to the IBM
i [and prior naming] is comp.sys.ibm.as400.misc which is the NG
chartered for the topic of AS/400 related discussions.

The FTP subcommand Verbose is a toggle; there are no parameters
for a switch of on\off. In my experience, the IBM i FTP client
defaults to "VERBOSE mode on." When verbose is on, I receive the
error FTP550; e.g. "550 File BOGUS in library QTEMP not found." when
using NAMEFMT 0 or "550 Unable to find file /temp/bogus.name" when
using NAMEFMT 1.

Regards, Chuck

Slinkeey

unread,
May 27, 2010, 3:30:53 PM5/27/10
to
> Regards, Chuck- Hide quoted text -
>
> - Show quoted text -

Hi Chuck,

Thanks for Both Tips..

I know that it is a toggle.. That is why I have VERBOSE before (to
turn off) and after (to turn on)

For most commands having VERBOSE off makes so the client doesn't come
back with a 550, but just displays the error text..
For some reason the GET command does not behave the same.

-------
username password
BIN
PUT QTEMP/TOARTRF
LCD QTEMP
VERBOSE
GET glhist.savf (REPLACE <-- Still Throws a 550.
DEL glhist.savf <-- 550 Not thrown so VERBOSE (off) is
working here.
VERBOSE
QUIT
-------

Thank You,
Jeff P

CRPence

unread,
May 28, 2010, 12:25:38 AM5/28/10
to
> Thanks for Both Tips..
>
> I know that it is a toggle.. That is why I have VERBOSE before
> (to turn off) and after (to turn on)
>
> For most commands having VERBOSE off makes so the client doesn't
> come back with a 550, but just displays the error text..
> For some reason the GET command does not behave the same.
>
> -------
> username password
> BIN
> PUT QTEMP/TOARTRF
> LCD QTEMP
> VERBOSE
> GET glhist.savf (REPLACE<-- Still Throws a 550.
> DEL glhist.savf<-- 550 Not thrown so VERBOSE (off) is
> working here.
> VERBOSE
> QUIT
> -------
>

He-heh... I thought the problem was that even after VERBOSE "the
FTP client doesn't even report the error code." :-) That is why I
suggested that the VERBOSE=on was the default, and that after
VERBOSE toggles, VERBOSE=off. My posted results showed VERBOSE=on
seems to work fine... but I did not even try VERBOSE=off. Now that
I have tried that, I see that the FTP550 occurs irrespective of
VERBOSE on\off.

Given that the expectation, as compared with other clients and\or
according to the documentation [e.g. the suggestion that VERBOSE=on
intends to "display the responses from the FTP server", which leads
to the obvious inference that VERBOSE=off intends to *not* display
the responses from the FTP server], I would suggest reporting the
unexpected result to IBM as a defect.

Regards, Chuck

Slinkeey

unread,
Jun 1, 2010, 12:51:54 PM6/1/10
to
> Regards, Chuck- Hide quoted text -
>
> - Show quoted text -

Hello,

No problem. I can be confusing at times. I also posted to that other
newsgroup like you suggested. I think I may give IBM a call.

Thanks,
Jeff

0 new messages