"Kelly D. Wason" wrote:
> 
> >
> > I am using Eigerstein as a firewall.  I want to mail a copy of the log LRP
> > produces periodically to myself.  Is there a way to schedule a cron job to
> > send a copy of the log and then flush the log?  For that matter, does cron
> > even run on LRP?
> 
> No one has responded to my query.  Is this somehow a dumb question?

No, it's just the vacation season.......   ;)
(Many are away so no quick answers here)
 
> I have looked at a lot of how tos and support docs listed at various places,
> and cannot find the answer to my question.  I tried a geocrawler search and
> it didn't work.  I did notice a message that said an upgrade was being done.
> 
> anyway, if any body can put me on the right track I would appreciate the
> help

If you are not using a fully qualified domain name you may have problems
using the mail command. So I use a little script called /etc/sendlogs:

#!/bin/sh
echo "mail from: [EMAIL PROTECTED]" > /tmp/tmplogs
echo "rcpt to: [EMAIL PROTECTED]" >> /tmp/tmplogs
echo "data" >> /tmp/tmplogs
cat /var/log/messages >> /tmp/tmplogs
echo "." >> /tmp/tmplogs
echo "quit" >> /tmp/tmplogs
cat /tmp/tmplogs | mnc smtp.server.name 25
rm -f /tmp/tmplogs

<< EOF >>

and edit crontab with: ae /etc/crontab

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file.
# This file also has a username field, that none of the other crontabs
do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
05 1,3,6,9,12,15,18,21,23       * * *   root    /etc/sendlogs

<< EOF >>

Backup with lrcfg : b) Back-up ramdisk : 2) etc 

That's one solution, the others will give other alternatives. That
depends on your ISP's SMTP server....


-- 
Patrick Benson
Stockholm, Sweden

_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to