On Tue, Jan 18, 2000 at 03:19:02PM -0600, Bret Hughes wrote:
> I have a java program that spits out messages to standard out
> periodically.  This program will run indefinetly and when I redirect the
> output the file gets pretty big >10MB after a week or so.  There is a
> bunch of debug stuff in there right now and the production version will
> not have quite so much stuff in it but that is another story...
> 
> My questions are these:  How does the shell handle redirected output? 
> Does it just append to the file and not use a copy of the file in
> memory?
> 
> Can I use logrotate to manage this file by using the copy/truncate
> function?  The ability to email the old file seems pretty cool and would
> be very useful.

>From what I understand, logrotate depends on the ability to either restart
the daemon writing to the file, or being able to send it a signal to tell
it to re-open it's file handles.

The way Unix works is if a process is writing to a file, even if you delete
it, the file doesn't go away until the process closes the file.


-- 
Steve Borho                       Voice:  314-615-6349
Network Engineer
Celox Communications Corp

Fortune of the day:
Boycott meat -- suck your thumb.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to