Making a certain cron job

Jason Lieurance jason at
Sun Sep 7 18:54:12 PDT 2003


We use cronolog to rotate our apache log files so are log files look like so:


Now, I want to make a cron job to mail the log to our webmaster every day but I
having terrible visualizing how to do it. If I do 'cat /var/log/http/2003-09-* |
mail -s log web at' he'll get every log of the month not to mention next
month I'll have to edit the job. I know I'll need to use variables but I'm drawing a
blank. Please advise.


More information about the freebsd-questions mailing list