[Nagios-devel] Re: [Nagios-users] $OUTPUT$ as shell script parameter

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] Re: [Nagios-users] $OUTPUT$ as shell script parameter

Post by Guest »

On Tue, Sep 14, 2004 at 12:10:55PM -0700, Jason Martin wrote:

> Try surrounding the output macro with single quotes, ex
> '$OUTPUT$'. The shell won't evaluate special characters inside
> the single-quotes.

Has there be any thought toward making the macro values available
via environment variables? This would be good for commands that want
to be "intelligent" and have access to all the available information
(for which writing the commands out and parsing all the arguments is a
bit tedious), and also solves the problem of having to strip certain
characters from command output and user comments for fear of
inadvertently executing them.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked