13 Aug
2015
13 Aug
'15
4:33 p.m.
On 8/13/2015 9:01 AM, Ribeiro, Glauber wrote:
MAILC="tr -d \"\\001\\004\\015\" | mail"
I think you shouldn't escape the quotes:
MAILC="tr -d "\\001\\004\\015" | mail"
I suspect that without the escapes, the variable won't have the right definition, since quotes are used to contain the value ... although it's possible that *with* the escapes, it won't have the right definition either.
It's starting to sound like I need to write a script so that no special characters are required. An ugly hack, but I think it will work ... so I will go ahead and do that.
A better option might be to create a feature where we can define a list of characters that should be stripped out of email text before it is sent, and have Xymon itself handle that.
Thanks, Shawn