lr-20001211 on FreeBSD 4.1-STABLE?
Brad Knowles
blk at skynet.be
Fri Dec 15 12:20:10 CET 2000
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.
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.
Unfortunately, even after setting LR_HOME correctly (at least, I
think it was correct), I still get an error:
$ 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? 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?
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
I'm going to give this new version a try under FreeBSD and see
what happens.
--
These are my opinions -- not to be taken as official Skynet policy
======================================================================
Brad Knowles, <blk at skynet.be> || Belgacom Skynet SA/NV
Systems Architect, Mail/News/FTP/Proxy Admin || Rue Colonel Bourg, 124
Phone/Fax: +32-2-706.13.11/12.49 || B-1140 Brussels
http://www.skynet.be || Belgium
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
-Benjamin Franklin, Historical Review of Pennsylvania.
--
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