You can do something like:
find /var/log/qmail -type f -mtime +<DAYS> -exec rm -f {} \;
Replace <DAYS> with a real number (like 7 for delete files older than 7
days).
You should also make sure that your system clock is being synchronized
by a reliable ntp server so as to prevent BIOS problems (which should
also be investigated) from causing floating shifts in time on your
machine.
regards,
~ Dairenn Lombard
Systems Administration Department, Los Angeles
BroadSpire, Inc.
> -----Original Message-----
> From: kernel.2k5 [mailto:[EMAIL PROTECTED]
> Sent: Friday, December 28, 2007 11:36 PM
> To: [email protected]
> Subject: [qmailtoaster] How to Wipe Out All log with Old Time Stamps
>
>
> Hello All ,
>
> as i caught up with Time Warp Error .
>
> Now i want to remove all the Logs and make a fresh logs with
> new time stamp of current System Time .
>
> is there any way to remove all old logs resides in
> /var/log/qmail/* , with older time Stamp ,
>
> as i am receiving errors like this : every 5 minutes :
>
> 29-12-2007 04:00:01, Rateup ERROR: /usr/bin/rateup found that
> clamd's log file time of 1199364002 was greater than now (1198881001)
> ERROR: Let's not do the time warp, again. Logfile unchanged.
>
> Kindly help .
>
> Thanks a lot to all and Happy New Year Ahead .
>
> --
> =======================================================
> With Best Regards
>
> Mr.Shailesh Bhutada(CTO)
>
>
> Email:[EMAIL PROTECTED]
> =======================================================
>
>
> ---------------------------------------------------------------------
> QmailToaster hosted by: VR Hosted <http://www.vr.org>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]