How tol limit the file to fixed size?
Hi,
I want to limit the file size to 100MB(say0. but i should able to add details (log messages). I dont want the old details in the file ie need only recent updates.( a mechanism which work as a FIFO or pipe ) |
Have a look at the "logrotate" command.
|
Quote:
I have lot of log files dynamicly created with differnt file names. is there any utility that can implement easly in this contest? |
logrotate allows you to specify log names with wildcards (ie to rotate all logs in a certain directory).
See "man logrotate", especially also "olddir" option. |
Quote:
|
All times are GMT -5. The time now is 09:26 PM. |