| | | Forum Newbie
       
Group: Forum Members Last Login: 4/28/2008 12:05:07 PM Posts: 2, Visits: 9 |
| | I have a script that worked great on WSFTP 8 - it included the ability to stop logging mid script and open a new trace file with a different name depending on which label section the script is on. i.e. start with LOG ftplog.log then depending on step results do LOG OFF, LOG ftperror.log. I found that version 8 would log only those sections between LOG ftplog.log and ending with LOG OFF, but having mulitiple LOG commands under version 2007 causes each log file to be created with no data even though the progression of the steps turns the first log off before opening the second one. This script in question (under version 8) runs hourly and would close the log, perform a shell command that would copy the log file to a different directory with a date stamp and perform a follow up shell command that deleted the log file (I found that unchecked these log files grow to unmanageable sizes and to create a script with logging capabilities that can run for months without human intervention there needs to be a log file size limit or a scripted procedure to clean out old hourly logs). Example of what used to work: log test.log lcd c:\winnt log off log test2.log lcd c:\winnt log off This small script under version 8 would create both log files with actual data of the steps in between creation and log off - under version 2007 it creates both files with a file length of zero. If you remove the log off commands this will create only test2.log showing all 4 lines of steps. Anyone know of a way to limit the log file size or close the log in order to use a shell command to delete it? |
| |
|
|