Aaron Walker wrote:
On Tue, 2004-02-10 at 12:33, Norbert Kamenicky wrote:

cron demon is your friend

just write a command which sends file e.g.:

mail -s "iptables log" </path/logfile

to crontab in /var/spool
or better to /etc/cron.daily/iptables.mail
(U can find some examples in that dir.)

noro



Yes I am aware of this, howewver, the name of the logfile changes daily,
since with metalog, the rotated file is named by date "ie.
log-2004-02-10-22:10:05"


Still not a problem at all ... if u are only a little familiar with standard unix commands :-).

Replace the name of logfile by:

$(ls --sort=time /path_to/log-*|head -1)

noro


-- [EMAIL PROTECTED] mailing list



Reply via email to