summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 68b985f)
raw | patch | inline | side by side (parent: 68b985f)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 10 Jun 2003 05:04:09 +0000 (05:04 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Tue, 10 Jun 2003 05:04:09 +0000 (05:04 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@544 f882894a-f735-0410-b71e-b25c423dba1c
contrib/urlize.pl | patch | blob | history |
diff --git a/contrib/urlize.pl b/contrib/urlize.pl
index 8bb591f2e1c49e13ceef090c22b7668a8e267f2a..5acb52de8e522ff2c0979e606fdfafd06701af03 100644 (file)
--- a/contrib/urlize.pl
+++ b/contrib/urlize.pl
#
# A wrapper around Nagios plugins that provides a URL link in the output
#
-
+#
+# Pay close attention to quoting to ensure that the shell passes the
+# expected data to the plugin. For example, in:
+#
+# urlize http://example.com/ check_http -H example.com -r 'two words'
+#
+# the shell will remove the single quotes and urlize will see:
+#
+# urlize http://example.com/ check_http -H example.com -r two words
+#
+# You probably want:
+#
+# urlize http://example.com/ \"check_http -H example.com -r 'two words'\"
+#
($#ARGV < 1) && die "Incorrect arguments";
my $url = shift;