summaryrefslogtreecommitdiffstats
path: root/contrib/urlize.pl
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/urlize.pl')
-rw-r--r--contrib/urlize.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/urlize.pl b/contrib/urlize.pl
new file mode 100644
index 0000000..8bb591f
--- /dev/null
+++ b/contrib/urlize.pl
@@ -0,0 +1,16 @@
1#!/usr/bin/perl
2#
3# urlize.pl
4# jcw, 5/12/00
5#
6# A wrapper around Nagios plugins that provides a URL link in the output
7#
8
9($#ARGV < 1) && die "Incorrect arguments";
10my $url = shift;
11
12chomp ($result = `@ARGV`);
13print "<A HREF=\"$url\">$result</A>\n";
14
15# exit with same exit value as the child produced
16exit ($? >> 8);