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:
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 *All
I'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
Originally 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:
Code:FTPUSER FTPUSER quo rcmd SNDUSRMSG MSG('HI ME!!!') TOUSR(ME) quit
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.
Code: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.
Code: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