> We've *not* been able to get mailonerr/moe.config to work (from Charles'
> website: <http://lrp.steinkuehler.net/Packages/Utilities.htm>).
>
> root@bluetrout:/var/log
> # /usr/local/bin/mailonerr
> /usr/local/bin/mailonerr: 56: Syntax error: end of file unexpected
> (expecting "}")
>
> root@bluetrout:/var/log
> # /usr/local/bin/mailonerr moe.config
> /usr/local/bin/mailonerr: 56: Syntax error: end of file unexpected
> (expecting "}")
>
> It fails at this line:
>
> { su $su_usr -c "$cmd" } 2>$prefix.err 1>$prefix.out
>
> The command:
>
> su $su_usr -c "$cmd"
>
> works from the CLI; but, *fails* when called from this script.  Yes, of
> course, we have accounted for variable expansion . . .
>
> What do you think?

Hmm...barring a problem with the script itself (like DOS end-of-lines or
something when it got downloaded), I don't know what's wrong.  Verify the
script didn't get mangled, and if it looks OK, provide details on the system
you're running.  I did have to make some mods to moe when I migrated it to a
'full' linux system (a RH 7.0 system running bash).  I don't think this was
one of the problems I encountered, but it could have been...

Charles Steinkuehler
http://lrp.steinkuehler.net
http://c0wz.steinkuehler.net (lrp.c0wz.com mirror)


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

Reply via email to