lr-20001211 on FreeBSD 4.1-STABLE?
Joost van Baal
joostvb at logreport.org
Wed Dec 13 14:31:21 CET 2000
On Wed, Dec 13, 2000 at 01:57:27PM +0100, Brad Knowles wrote:
> At 11:16 AM +0100 2000/12/13, Joost van Baal wrote:
>
> > Do a chmod a+x /usr/local/src/logreport/lr-20001211/install-sh. I believe
> > that'll fix the problem for now.
>
> Okay, I've re-installed on both the Solaris machine and the
> FreeBSD machine, based on your previous e-mail messages. I've also
> applied this fix for the Solaris machine.
>
> I've manually applied the mutt "fix" on both machines
> (substituting /usr/bin/mailx or /usr/ucb/Mail, as appropriate),
You changed 'mutt -F $MUTTRC' in /usr/bin/mailx or /usr/ucb/Mail, as
appropriate, I assume? That'll work.
> and
> I've also applied the nqmgr fix. I've got it doing a log file
> distillation now on the FreeBSD machine, but it bombs out before
> getting that far on the Solaris machine:
>
> /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?
Your /bin/sh chokes on
if ! test $# -gt 3
Btw, you should use lr_log2report, not lr_log2mail. I doubt if
the script will possibly run on a solaris machine without severe
hacking. You could try changing the #!/bin/sh into #!/path/to/bash
or #!/path/to/ksh. That'll be the fasted workaround, if you've got a
bash or ksh installed. I am planning to make the shell scripts more
portable. It's hard for me to test, as you know. The shell scripts
_do_ run with FreeBSD's and OpenBSD's /bin/sh, however.
Bye,
--
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