Logging trouble under WSFTP Pro 2007

To the Ipswitch web site

Ipswitch Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Logging trouble under WSFTP Pro 2007Expand / Collapse
Author
Message
Posted 4/23/2008 6:59:45 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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?

Post #43155
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Dave, Mark Singh, kevin r gillis, Jason Benton, Brandon Felger, Ben Henderson, Tripp Allen, Will Sansbury, Hush, FTPplanet.com, Hugh Garber, WUP-PM, mmulryan@ipswitch.com, mswimm

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 12:40pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 7 queries. Compression Enabled.