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_flexlm.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_flexlm.pl')
-rwxr-xr-x | plugins-scripts/check_flexlm.pl | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins-scripts/check_flexlm.pl b/plugins-scripts/check_flexlm.pl index 1d26b7c8..595a0b34 100755 --- a/plugins-scripts/check_flexlm.pl +++ b/plugins-scripts/check_flexlm.pl | |||
@@ -26,19 +26,15 @@ | |||
26 | # initial version: 9-10-99 Ernst-Dieter Martin edmt@infineon.com | 26 | # initial version: 9-10-99 Ernst-Dieter Martin edmt@infineon.com |
27 | # | 27 | # |
28 | # License: GPL | 28 | # License: GPL |
29 | # $Id$ | ||
29 | # | 30 | # |
30 | 31 | ||
31 | BEGIN { | ||
32 | if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { | ||
33 | $runtimedir = $1; | ||
34 | $PROGNAME = $2; | ||
35 | } | ||
36 | } | ||
37 | 32 | ||
38 | use strict; | 33 | use strict; |
39 | use Getopt::Long; | 34 | use Getopt::Long; |
40 | use vars qw($opt_V $opt_h $opt_F $verbose $PROGNAME); | 35 | use vars qw($opt_V $opt_h $opt_F $verbose $PROGNAME); |
41 | use lib $main::runtimedir; | 36 | use FindBin ; |
37 | use lib "$FindBin::Bin"; | ||
42 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); | 38 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); |
43 | 39 | ||
44 | sub print_help (); | 40 | sub print_help (); |