Bill,
don't use ftpTrace if you don't want trace output to be displayed.
Use ftpTraceLog / ftpTraceLogOff to write trace output to a file.
Instead of creating and (if required) reading a trace log file, you might
consider the command trace data available through the CmdResponse method.
Here's an example that works for me.
server = "gutenberg.pglaf.org"
userid = "anonymous"
passwd = ""
trclog = "TstFtpCls.log"
ftp = .rxftp~new()
say "TraceLog " ftp~ftpTraceLog(trclog, "R") ftp~ftpErrno
say "SetUser " ftp~ftpSetUser(server, userid, passwd) ftp~ftpErrno
say "ChDir " ftp~ftpChDir("mirrors/gutenberg") ftp~ftpErrno
ftp~response
say "Pwd " ftp~ftpPwd ftp~ftpErrno
ftp~response
start = ftp~CmdResponse~items + 1
say "Ls " ftp~ftpLs("*.txt") ftp~ftpErrno
ftp~response
say ftp~CmdResponse~section(start)
say "Logoff " ftp~ftpLogoff
say "TraceLogOff" ftp~ftpTraceLogOff
::requires "rxftp.cls"
On Wed, Jun 28, 2017 at 3:48 PM, Bill Turner, WB4ALM <wb4...@arrl.net>
wrote:
> On 06/28/2017 08:59 AM, Erich Steinböck wrote:
>
>> Bill, did you check FtpTraceLog() to redirect trace output to a file?
>>
>
> Erich Yes, but that does not seem to stop the output to the console...
>
> Apparently I am really missing something here.
>
> My usage of RxFTP is based upon the Appendix A, sample RxFtp program
> excepting that i am only checking for "if retc <> 0" condition codes to
> output "error messages"
> instead of the samples "if retc =0 then... else..." messages.
>
>
> my FTP terminating sequence of:
>
> retc = myftp~FtpLogoff()
> retc = myftp~FtpTraceLogoff()
> retc = myftp~FtpTrace()
> exit retc
>
> always causes the trace output to be displayed...
> regardless of any error issues or not.
>
> /s/ Bill turner. wb4alm
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel