[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] emailing a log file



> } Does anyone know of a script or cron job I can run that will mail my log
> } files to me when they get rotated?
> } I'd like to keep a copy of them locally.
> 
> I've got a itty bitty little hack of a Perl script that I wrote to
> do this kind of thing with:
> 
> ftp://ftp.webokay.com/pub/user_commands.mailbot

Any reason why you wouldn't just use the maillog function in logrotate? Just
curious.

man logrotate for all of the various options.

cya,
j