aboutsummaryrefslogtreecommitdiff
path: root/contrib/urlize.pl
blob: 8bb591f2e1c49e13ceef090c22b7668a8e267f2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/perl
#
# urlize.pl
#   jcw, 5/12/00
#
# A wrapper around Nagios plugins that provides a URL link in the output
#

($#ARGV < 1) && die "Incorrect arguments";
my $url = shift;

chomp ($result = `@ARGV`);
print "<A HREF=\"$url\">$result</A>\n";

# exit with same exit value as the child produced
exit ($? >> 8);