lr-20001211 on FreeBSD 4.1-STABLE?
Joost van Baal
joostvb at logreport.org
Fri Dec 15 15:02:39 CET 2000
On Fri, Dec 15, 2000 at 12:20:10PM +0100, Brad Knowles wrote:
> At 1:57 PM +0100 2000/12/13, Brad Knowles wrote:
>
> > /usr/local/bin: ./lr_log2mail email postfix < /var/log/mail.debug
> > all all none lr_log2mail info started with email postfix
> > ./lr_log2mail: bad substitution
> > ./lr_log2mail: !: not found
> > ./lr_log2mail: cannot shift
> >
> > Any suggestions on how to best go about debugging this?
>
> Okay, upgrading to the latest version solved the last two errors,
> but still didn't solve the "bad substitution" error on Solaris.
> Switching the script to use bash seems to solve that problem.
I believe I fixed this. The scripts in cvs should work on solaris. (Didn't
yet get the sparc station up, so haven't yet tested it there.) I'll package
latest version this weekend.
> However, I believe that the LR_HOME value should be set during
> the ./configure, and put into the shell script so that you don't have
> to define it in the environment before you call lr_log2mail.
Absolutely. Fixing this is high on my wishlist. I did't yet use all
nice features of the autoconf and automake stuff.
>
> Unfortunately, even after setting LR_HOME correctly (at least, I
> think it was correct), I still get an error:
LR_HOME should be exactly the thing you gave as --prefix during configure.
> $ lr_log2mail email postfix blk at skynet.be < /var/log/mail.debug
> all all none lr_log2mail info started with email postfix
> all all none lr_log2mail error please give at least 4 args,
> indicating superservice service addressee host (flags)
>
> I don't understand why I have to specify the host. If this
> argument is not specified, can't the program figure out what the
> hostname of the local machine is, and use that?
I'm thinking about this. What I'd like is having an "identifier" of the
logfile. This makes parsing the huge amount of debug output more convenient,
when running the system as a responder. Don't know what's the nicest solution
yet. (In fact, the last argument can be anything now: it's used only in
the stuff you get on stderr, and in the subject of the email message you get.)
> Also, shouldn't we
> be able to specify a default recipient of all reports during the
> ./configure, or have it automatically default to sending that stuff
> to root on the local machine?
Nice idea! I'll work on that. The point is, lr_log2mail gets called by
lr_spool, when the system runs as an online responder, autoreplying
to logfiles, received by email (see doc/overview.txt). But of course,
a default email address would be nice.
> Unfortunately, even if I fully specify everything, it still bombs:
>
> $ lr_log2mail email postfix blk at skynet.be fatbert.skynet.be <
> /var/log/mail.debug
> all all none lr_log2mail info started with email postfix
> blk at skynet.be fatbert.skynet.be
> unknown all none lr_log2report info started with email postfix
> /usr/local/bin/lr_log2report: error: not found
> /usr/local/bin/lr_log2report: !: not found
> /usr/local/bin/lr_log2report: !: not found
> /usr/local/bin/lr_log2report: SUPERSERVICE=email: is not an identifier
> email postfix none lr_log2mail error lr_log2report failed
>
Is this what happens when running lr_log2report as a bash script?
> I'm going to give this new version a try under FreeBSD and see
> what happens.
Well, that worked for me.
Thanks for your feedback! You're making me work hard ;-)
--
Joost
--
To UNSUBSCRIBE, email to questions-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
questions-request at logreport.org
More information about the Questions
mailing list