Hi Experts,
I have script on crontab and give output quite large. I would like to know how to create rotate log when the size of log maximum 50MB
if the test.log is 50MB then create test.0
Thanks
Edy
Hi Experts,
I have script on crontab and give output quite large. I would like to know how to create rotate log when the size of log maximum 50MB
if the test.log is 50MB then create test.0
Thanks
Edy
One solution would be to monitor it with another cron script, another would be for it to monitor its own logfile size (running counter or polling after write) on reaching the magic number rename the current to logfile.$(date +%Y-%m-%d.%H:%M) and start writing to the new file. The latter has the advantage of ensuring you don't interupt a write operation, the former that you are not slowing the logging process down (directly)
Hi,
I think by adding log file in logadm.conf is the best way solution for my problem.