Hello. I am setting up an FTP process and want to know if there is a way to generate one log file from the FTP process. In other words I need a log that has both the input and output streams together as one log. Is there a way to do that? Thanks for your help.
Announcement
Collapse
No announcement yet.
FTP logging
Collapse
X
-
Re: FTP logging
by input and output stream do you mean the sub commands and the responses? if so they are in the FTP log. it's a simple process:
the output from the FTP would be in the THLIB/QFTPLOG member.Code:OvrDBF Input ToFile(&ScrLib/&ScrFile) Mbr(&Script) + Share(*Yes) OvrScope(*CallLvl) OvrDBF Output ToFile(THLIB/QFTPLOG) Mbr(&LogMbr) + OvrScope(*CallLvl) Share(*Yes) FTP &Address DltOvr *AllI'm not anti-social, I just don't like people -Tommy Holden
-
Re: FTP logging
If you want the input and output logs together, I believe you'll simply need to copy the INPUT and OUTPUT from the OVRDBF suggestion below into whatever type of file you need.
One caution is the INPUT may (probably does) include the FTP site, user and password.
Things like this may be frowned upon.
good luck
Comment
-
Re: FTP logging
i haven't tried it but to me it would suckOriginally posted by dhuesman View PostIf you want the input and output logs together, I believe you'll simply need to copy the INPUT and OUTPUT from the OVRDBF suggestion below into whatever type of file you need.
One caution is the INPUT may (probably does) include the FTP site, user and password.
Things like this may be frowned upon.
good luck
for example:
FTP Script:
FTP log added to the same member used as the script:Code:FTPUSER FTPUSER quo rcmd SNDUSRMSG MSG('HI ME!!!') TOUSR(ME) quit
what's so difficult reading just the log??Code:FTPUSER FTPUSER quo rcmd SNDUSRMSG MSG('HI ME!!!') TOUSR(ME) quit Output redirected to a file. Input read from specified override file. Connecting to host 220-QTCP at NOTES1. 220 Connection will close if idle more than 5 minutes. Enter login ID (xupd42ay): 331 Enter password. 230 FTPUSER logged on. 250 Now using naming format "1". 257 "/home/FTPUSER" is current directory. Enter an FTP subcommand. quo rcmd SNDUSRMSG MSG('HI ME!!!') TOUSR(ME) Enter an FTP subcommand. > quit 221 QUIT subcommand received.
same info less garbage...but that's just me...heck i'm not even sure if you can use the same member for both input and output i ran a little test and it gives me errorsCode:Output redirected to a file. Input read from specified override file. Connecting to host 220-QTCP at NOTES1. 220 Connection will close if idle more than 5 minutes. Enter login ID (xupd42ay): 331 Enter password. 230 FTPUSER logged on. 250 Now using naming format "1". 257 "/home/FTPUSER" is current directory. Enter an FTP subcommand. quo rcmd SNDUSRMSG MSG('HI ME!!!') TOUSR(ME) Enter an FTP subcommand. > quit 221 QUIT subcommand received.
so unless it's a PTF issue (which i doubt) you'd have to CPYF the script into the log fileCode:Get option list not valid for member FTPDBS. Pointer not set for location referenced.
I'm not anti-social, I just don't like people -Tommy Holden
Comment



Comment