Seshan forced the electrons to say:
> I am using RH 6.0, which runs some script so the maillog changes every day
> and after the 6th day the first day's log is deleted and
> that the reason why I'd like to generate this report on daily basis.

The name of the program that does is logrotate.

See logrotate(8) for details.

If that is the only reason you are looking for this software, then you can try
to change logrotate's configuration:

edit /etc/logrotate.d/syslog, and look for the lines that say
/var/log/maillog {
postrotate
   /usr/bin/killall -HUP syslogd
endscript
}

Change it to:
/var/log/maillog {
monthly
rotate 3
postrotate
   /usr/bin/killall -HUP syslogd
endscript
}

To keep 3 months' logs.

Binand

-- 
#include <stdio.h>                                   | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c;     | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c";    | printing program.
int main(){printf(p,10,34,p,34,10);return 0;}        | Try it!!

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to