Fwd: parameter starting with dollar sign

Frank Van Damme frank.vandamme at gmail.com
Mon Jul 18 14:42:04 CEST 2011


Op 18-07-11 10:16, Michael Friedrich schreef:
> Frank Van Damme wrote:
>> (Sorry for possible reposts. I'll stop reposting the day Gmane actually
>> works).
>>
>> Does anybody know how to use a parameter to a check command that starts
>> with a dollar sign? Nagios interprets the dollar as if I want to
>> substitute the variable with a macro. I tried escaping, but then I get a
>> literal \ backslash.
> 
> try $$ for an escaped dollar char, like described in the docs.

It gets difficult when your value is from a macro and starts with a
couple dollar signs though.


-- 
No part of this copyright message may be reproduced, read or seen,
dead or alive or by any means, including but not limited to telepathy
without the benevolence of the author.

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list