You can use
ForFiles, which can be found here:
Use it like this to
kill off anything older than 30 days. Basically it runs the -c"cmd..."
string for all of the files it finds that match the criteria of being older than
30 days.
forfiles -pc:\ -s -m*.*
-d+30 -c"cmd /c if @ISDIR==FALSE echo del
[EMAIL PROTECTED]@FILE0x22"
You can use
countfiles to see how many files are in the directory and once it gets
to big you can have SA execute the forfiles line above as the
alert.
Kevin
-----Original Message-----
From: Richard Temple [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 3:47 AM
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Feature RequestsThat is a good point, but being a overworked and underpaid admin I like to have the application do as much work for me as possible ;) :)Best wishes
Richard Temple
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Bulinckx
Sent: 25 July 2003 11:39
To: [EMAIL PROTECTED]
Subject: RE: [SA-list] Feature RequestsWe don't think it's the application that should delete files. It's something the admin should do and therefore we never added this feature to Servers Alive.
dirk.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Richard Temple
Sent: Fri Jul 25 11:55 AM
To: [EMAIL PROTECTED]
Subject: [SA-list] Feature RequestsJust a minor thing that would be good. Would it be possible to restrict the quantity of log files that Salive stores. For example, I tend to set Salive to create a new log each day - it would be good to only keep a maximum of 30 days of logs so that the disk does not fill up.Best wishes
Richard Temple