From becc0f34e60500798bd15bf5af6e4b8c52707d0a Mon Sep 17 00:00:00 2001 From: Subhendu Ghosh Date: Thu, 2 May 2002 16:43:29 +0000 Subject: fix for embedded perl git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@21 f882894a-f735-0410-b71e-b25c423dba1c --- plugins-scripts/check_flexlm.pl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins-scripts/check_flexlm.pl') 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 @@ # initial version: 9-10-99 Ernst-Dieter Martin edmt@infineon.com # # License: GPL +# $Id$ # -BEGIN { - if ($0 =~ m/^(.*?)[\/\\]([^\/\\]+)$/) { - $runtimedir = $1; - $PROGNAME = $2; - } -} use strict; use Getopt::Long; use vars qw($opt_V $opt_h $opt_F $verbose $PROGNAME); -use lib $main::runtimedir; +use FindBin ; +use lib "$FindBin::Bin"; use utils qw($TIMEOUT %ERRORS &print_revision &support &usage); sub print_help (); -- cgit v1.2.3-74-g34f1