Extremely large WinSCP log files

Advertisement

stevem16
Joined:
Posts:
1

Extremely large WinSCP log files

Hi,

Have a question regarding the WINSCP log file creation when scripting. We run a large number of scripts every day. We appear to have an intermittent problem with FTP's failing. When investigating, the log file from WINSCP is extremely large (close to 1GB) and can't even be opened. I've deleted the log file and then reran the script successfully. The log file the 2nd time (successful execution) is still extremely large.

I've done an analysis of our scripts and found examples where we have 2 identical scripts (except for the file name being sent) connecting to the same location, same log file parameters etc.... The one script creates a log file of 1,164KB the other 451,832KB. I don't understand how there can be such a discrepancy in the log file sizes. Can this be caused by multiple scripts running at the same time? Each script writes to a different log file name.

Here are the 2 scripts I mentioned above:

c:
cd\Program Files\winSCP
winscp.exe /script=E:\ESP\Scripts\FTPCNTL\BLKFTPGT.txt /log=e:\esp\scripts\logs\BLKFTPGT.txt



c:
cd\Program Files\winSCP
winscp.exe /script=E:\ESP\Scripts\FTPCNTL\BLKFTPET.txt /log=e:\esp\scripts\logs\BLKFTPET.txt




I'm at a loss... Any help, ideas would be appreciated.

Thanks,
Steve

Reply with quote

Advertisement

hariri
Guest

everyday log

Log file name can contain following patterns: !Y (year), !M (month), !D (day), !T (time), !@ (hostname), !S (session name), !P (process ID), !! (exclamation mark).
for example:
c:\ftp\!S!Y!M!D.log

Reply with quote

Advertisement

You can post new topics in this forum