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_ircd.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_ircd.pl')
-rwxr-xr-x | plugins-scripts/check_ircd.pl | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/plugins-scripts/check_ircd.pl b/plugins-scripts/check_ircd.pl index e4c4bd02..098a8e70 100755 --- a/plugins-scripts/check_ircd.pl +++ b/plugins-scripts/check_ircd.pl | |||
@@ -38,15 +38,8 @@ | |||
38 | # with perl -wT and 'use strict' | 38 | # with perl -wT and 'use strict' |
39 | # | 39 | # |
40 | # test using check_ircd.pl (irc-2.mit.edu|irc.erols.com|irc.core.com) | 40 | # test using check_ircd.pl (irc-2.mit.edu|irc.erols.com|irc.core.com) |
41 | # 2002/05/02 SG Fixed for Embedded Perl | ||
41 | # | 42 | # |
42 | # ------------------------------------------------------------------[ Begin ]-- | ||
43 | |||
44 | BEGIN { | ||
45 | if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { | ||
46 | $runtimedir = $1; | ||
47 | $PROGNAME = $2; | ||
48 | } | ||
49 | } | ||
50 | 43 | ||
51 | # ----------------------------------------------------------------[ Require ]-- | 44 | # ----------------------------------------------------------------[ Require ]-- |
52 | 45 | ||
@@ -59,7 +52,8 @@ use strict; | |||
59 | use Getopt::Long; | 52 | use Getopt::Long; |
60 | use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $verbose); | 53 | use vars qw($opt_V $opt_h $opt_t $opt_p $opt_H $opt_w $opt_c $verbose); |
61 | use vars qw($PROGNAME); | 54 | use vars qw($PROGNAME); |
62 | use lib $main::runtimedir; | 55 | use FindBin; |
56 | use lib "$FindBin::Bin"; | ||
63 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); | 57 | use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); |
64 | 58 | ||
65 | # ----------------------------------------------------[ Function Prototypes ]-- | 59 | # ----------------------------------------------------[ Function Prototypes ]-- |