Stdout files.

From: Alistair McKeown (Alistair.Mckeown@jacobsrimell.com)
Date: Thu Sep 16 2004 - 07:55:47 EDT


Hi Gurus,
                I'm sure this is a common thing to do. We have a process
running which writes stdout (standard out) to a log file. I was needing to
clear this file out as its getting big.
                Now on our test servers we can stop the process and do a 'cp
/dev/null filename' and it clears it out. Trouble is at the moment, the
files I need clearing out are on a production server where the process can't
be stopped only in a maintainence window.
                Anyone know how to clear a stdout log file without stopping
the process its attached to. I actually tried it in production with the
process running and initial I did an 'ls' again and the file size was down
to '0' but 30 seconds later doing another 'ls' the size is still the same
and when you do a more on the filename it screws up!!

Alistair.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:27 EDT