I have a Perl script that runs when certain events are detected. I
am monitoring Windows services. When one of these services is down,
the Perl script is ran. One of the arguments I pass to the Perl
script is the event message. The event message in this case has a
single quote character around the service name. This causes the
Perl script to puke. Is there a way to remove/escape those single
quotes before I pass them to the Perl script?
Quote the parameter to your script in regular quotes.
Command Template:
your_script.pl "${evt/message}"
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users