trimming logfile

  • Thread starter Thread starter dwcasey
  • Start date Start date
D

dwcasey

Are there any commands in Windows to 'cut' an open logfile to keep the
size down?

We're redirecting the output of an application startup to a
logfile...it grows non-stop until we stop the application.

If I had a unix-like cut command, I should be able to keep the size
down to something manageable. Thanks.
 
Are there any commands in Windows to 'cut' an open logfile to keep the
size down?

We're redirecting the output of an application startup to a
logfile...it grows non-stop until we stop the application.

If I had a unix-like cut command, I should be able to keep the size
down to something manageable. Thanks.

If the application keeps on writing records to the log file
without ever closing the file then you cannot trim it. You
must close it first, even under unix.
 
Back
Top