Pinnacle101
09-28-2001, 05:18 AM
Is it possible to make a cronjob that deletes log files older than, lets say 30 days?
And if it is possible, how do I do it?
crontab --- ?
And if it is possible, how do I do it?
crontab --- ?
|
Click to See Complete Forum and Search --> : Crontab help. Pinnacle101 09-28-2001, 05:18 AM Is it possible to make a cronjob that deletes log files older than, lets say 30 days? And if it is possible, how do I do it? crontab --- ? RedGren 09-28-2001, 04:19 PM A simple way to do it would be to write a little shell script that does it and call that script via crontab. Craig McPherson 09-28-2001, 06:33 PM Well, you could. But why not just use logrotate, because it's already there and it does a lot of stuff? It would take a lot of work to reinvent the wheel when logrotate is probably already all you need. justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |