Don't run this command as root from the root directory :) Very bad things will happen to you if you do.
On Thu, 2002-06-06 at 08:18, Casper Gielen wrote: > On Wed, Jun 05, 2002 at 09:12:16PM -0700, Brian A. Stumm wrote: > > Has anyone written or found a shell script or the like used to > > automatically delete log files that are a certain number of days old? I'd > > like to keep a solid months worth of log files (31 maybe 35 days or so). > > From the top of my head (=untested) > > find ./ -mtime +30 -exec rm {} \; > > (Find all files in the current directory modified for the last time over > 30 days ago and remove them) > > If it works as expected put it in crontab. > -- > Casper Gielen > [EMAIL PROTECTED], [EMAIL PROTECTED] > -- > Linux sucks twice as fast and 10 times more reliably, > and since you have the source, it's your fault. -Ca1v1n > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlds_linux > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds_linux