Fwd: parameter starting with dollar sign
Michael Friedrich
michael.friedrich at univie.ac.at
Mon Jul 18 15:12:46 CEST 2011
Frank Van Damme wrote:
> 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.
you didn't mention that in the first place. w/o any examples it will be
hard to guess.
--
DI (FH) Michael Friedrich
Vienna University Computer Center
Universitaetsstrasse 7 A-1010 Vienna, Austria
email: michael.friedrich at univie.ac.at
phone: +43 1 4277 14359
mobile: +43 664 60277 14359
fax: +43 1 4277 14338
web: http://www.univie.ac.at/zid
http://www.aco.net
Icinga Core& IDOUtils Developer
http://www.icinga.org
------------------------------------------------------------------------------
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