Stdout files.
From: Alistair McKeown (Alistair.Mckeown_at_jacobsrimell.com)
Date: 09/16/04
- Previous message: sudar: "Help please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: sunmanagers@sunmanagers.org Date: Thu, 16 Sep 2004 12:55:47 +0100
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
- Previous message: sudar: "Help please"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|