diff options
author | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-02 16:43:29 +0000 |
---|---|---|
committer | Subhendu Ghosh <sghosh@users.sourceforge.net> | 2002-05-02 16:43:29 +0000 |
commit | becc0f34e60500798bd15bf5af6e4b8c52707d0a (patch) | |
tree | c117e73085955568f57d4eb89f41640297796977 /plugins-scripts/check_wave.pl | |
parent | bbcaeb1db1666c606a3578d3d24f1618f8c9947c (diff) | |
download | monitoring-plugins-becc0f34e60500798bd15bf5af6e4b8c52707d0a.tar.gz |
fix for embedded perl
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@21 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins-scripts/check_wave.pl')
-rwxr-xr-x | plugins-scripts/check_wave.pl | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins-scripts/check_wave.pl b/plugins-scripts/check_wave.pl index c6e6c662..6d58e4f4 100755 --- a/plugins-scripts/check_wave.pl +++ b/plugins-scripts/check_wave.pl | |||
@@ -3,15 +3,9 @@ | |||
3 | # $Id$ | 3 | # $Id$ |
4 | 4 | ||
5 | 5 | ||
6 | BEGIN { | ||
7 | if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { | ||
8 | $runtimedir = $1; | ||
9 | $PROGNAME = $2; | ||
10 | } | ||
11 | } | ||
12 | |||
13 | use strict; | 6 | use strict; |
14 | use lib $main::runtimedir; | 7 | use FindBin; |
8 | use lib "$Findbin::Bin"; | ||
15 | use utils qw($TIMEOUT %ERRORS &print_revision &support); | 9 | use utils qw($TIMEOUT %ERRORS &print_revision &support); |
16 | use vars qw($PROGNAME); | 10 | use vars qw($PROGNAME); |
17 | use Getopt::Long; | 11 | use Getopt::Long; |