[Nagiosplug-help] check_by_ssh with nested quotes?

Gunnar Hellekson ghelleks at yahoo.com
Tue Aug 20 07:29:02 CEST 2002

I've run into this enough times, and I'm now convinced that I'm doing
something wrong.  The problem is this:

check_by_ssh -H -C 'some_custom_check -X \'String With Spaces\''

I have never been able to get nested quotes to work -- I've tried every
variation I could think of, and nothing seems to work properly.

I've resorted to writing shell script wrappers for the some_custom_check
that are called by check_by_ssh to get around the problem.

spopen() seems to be the culprit, since it ignores/refuses quoting and
doesn't seem to offer an alternative.

Any suggestions?

More information about the Help mailing list