nohup.out Error log file - circular files

nohup.out Error log file - circular files

Post by Norman Lev » Tue, 08 Sep 1998 04:00:00



> -----------------------------


> 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
> Jack_S

You may want to check out the "alog" command which writes data to
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.
....
norman levin
vm/dynamics,
 
 
 

1. 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
Jack_S

2. DFE-580tx and redhat 7.3's sundance driver does not work.

3. nohup log file

4. bug in new .96b setterm stuff

5. error in my cups log file, with printing text files

6. mirror

7. SCSI file access problems and errors in log file

8. Problems patching Solaris 2.3

9. How can I split a log file into several log files?

10. wierd stuffs in proxy log file and back end server log file

11. nohup not generating/updating nohup.out from cron

12. stderr, different servers errors and error log files

13. Apache 1.2.3: fopen: Error 0: could not open error log file