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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top