> Date: Sun, 06 Sep 1998 05:21:05 -0400
> Subject: nohup.out Error log file
> An error/message log file nohup.out is continually (every 5
> minutes) being written to on an AIX-unix system I am using.
> After a couple of months the file is getting very big ~30Mb and I
> suspect may be causing problems as the system hangs while it
> finds the end of the file to write to.
> Is there an easy way to limit the size of the file while keeping
> the most recent messages (say the last week's messages) ?
> - -or should I just write a script which moves the current file to
> a .old file when it gets to a certain size and start a new file.
> Has anyone got any smart ideas on how to continually write/update
> a file while being able to limit its size, keeping the latest
> messages and removing the oldest messages
> - -like a FIFO (first in first out) buffer/file ?
> Thanks all
a file (much as "tee" does) but I think works in a circular file
fashion. You can put attributes of the file in the odm but you
can specify the file as options to the command.