[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [FW-1] Purging Log
Yes, cron would do the job. Use the find command to locate th file that has not been modified in 6 months. For example: find path_name -name *log -mtime +180 -exec rm {} HTH YIM --- Frank Hansen <[email protected]> wrote: > Hello List, > > Im struggling with a script to purge logs every so > often, > > And with the cron I would like to do a fw logswitch > daily and purge every, > say 6 months. > > I suppose the easiest way is to use cron, but have > anybody done something > like this > in a Cshell script. > > My question is, whats the best way to execute > maintenance tasks, using cron? > > Thanks for any feedback. > > - Frank Hansen > > > ______________________________________________ > DISCLAIMER > This email and any files transmitted with it, > including replies and forwarded copies (which may > contain alterations) subsequently transmitted from > the Company, are confidential and solely for the use > of the intended recipient. It may contain material > protected by attorney-client privilege. The contents > do not represent the opinion of Dimension Data > Switzerland except to the extent that it relates to > their official business. > If you are not the intended recipient or the person > responsible for delivering to the intended > recipient, be advised that you have received this > email in error and that any use is strictly > prohibited. If you are not the intended recipient, > please advise the sender by return e-mail, then > delete this message and any attachments. > Dimension Data Switzerland : > http://www.ch.didata.com > > ================================================= > To set vacation, Out Of Office, or away messages, > send an email to [email protected] > in the BODY of the email add: > set fw-1-mailinglist nomail > ================================================= > To unsubscribe from this mailing list, > please see the instructions at > http://www.checkpoint.com/services/mailing.html > ================================================= > If you have any questions on how to change your > subscription options, email > [email protected] > ================================================= __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ================================================= To set vacation, Out Of Office, or away messages, send an email to [email protected] in the BODY of the email add: set fw-1-mailinglist nomail ================================================= To unsubscribe from this mailing list, please see the instructions at http://www.checkpoint.com/services/mailing.html ================================================= If you have any questions on how to change your subscription options, email [email protected] =================================================
|