[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issue with MAILC env variable?
- To: "hobbit (at) hswn.dk" <hobbit (at) hswn.dk>
- Subject: Issue with MAILC env variable?
- From: Tom Moore <Tom.Moore (at) sas.com>
- Date: Wed, 9 Dec 2009 15:12:22 -0500
- Accept-language: en-US
- Acceptlanguage: en-US
- Thread-index: Acp5C+rV9abb/5IDRI2xpS4tAa8CzA==
- Thread-topic: Issue with MAILC env variable?
I'm trying to use the -r option in "nail" to change the from address headers. It works fine if I just have an email address, however if I use the (Name) nomenclature the hobbitd bombs with this error:
/usr/local/xymon/server/etc/hobbitserver.cfg: line 97: syntax error near unexpected token `('
/usr/local/xymon/server/etc/hobbitserver.cfg: line 97: `MAILC="/usr/bin/nail -r "user (at) blah.com (Xymon)""
Env is this:
MAILC="/usr/bin/nail -r "user (at) blah.com (Xymon)""
MAIL="$MAILC -s"
From the command line this works fine as well:
/usr/bin/nail -r "user (at) blah.com (Xymon)" myemail (at) something.com
Is there something in Xymon that is interpreting the parenthesis? I've even tried to escape them with \ to no avail.
Thx,
Tom