diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-10 05:04:09 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-10 05:04:09 (GMT) |
commit | 04afbf45d788f01bae320989e1c2a1fc9e06b7f3 (patch) | |
tree | 2d5021f25f1b2fb31d9790e75902f913f13b6ecd /contrib | |
parent | 68b985f6a0d34e2e81270e68447d0f57818c563a (diff) | |
download | monitoring-plugins-04afbf45d788f01bae320989e1c2a1fc9e06b7f3.tar.gz |
add comment about shell quote removal to address https://sourceforge.net/tracker/index.php?func=detail&aid=661916&group_id=29880&atid=397597
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@544 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/urlize.pl | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/contrib/urlize.pl b/contrib/urlize.pl index 8bb591f..5acb52d 100644 --- a/contrib/urlize.pl +++ b/contrib/urlize.pl | |||
@@ -5,7 +5,20 @@ | |||
5 | # | 5 | # |
6 | # A wrapper around Nagios plugins that provides a URL link in the output | 6 | # A wrapper around Nagios plugins that provides a URL link in the output |
7 | # | 7 | # |
8 | 8 | # | |
9 | # Pay close attention to quoting to ensure that the shell passes the | ||
10 | # expected data to the plugin. For example, in: | ||
11 | # | ||
12 | # urlize http://example.com/ check_http -H example.com -r 'two words' | ||
13 | # | ||
14 | # the shell will remove the single quotes and urlize will see: | ||
15 | # | ||
16 | # urlize http://example.com/ check_http -H example.com -r two words | ||
17 | # | ||
18 | # You probably want: | ||
19 | # | ||
20 | # urlize http://example.com/ \"check_http -H example.com -r 'two words'\" | ||
21 | # | ||
9 | ($#ARGV < 1) && die "Incorrect arguments"; | 22 | ($#ARGV < 1) && die "Incorrect arguments"; |
10 | my $url = shift; | 23 | my $url = shift; |
11 | 24 | ||