diff options
-rwxr-xr-x | bin/smokeping (renamed from bin/smokeping.dist) | 9 | ||||
-rwxr-xr-x | bin/tSmoke (renamed from bin/tSmoke.dist) | 7 |
2 files changed, 10 insertions, 6 deletions
diff --git a/bin/smokeping.dist b/bin/smokeping index 94e7807..3fe0575 100755 --- a/bin/smokeping.dist +++ b/bin/smokeping @@ -1,10 +1,13 @@ -#!/usr/bin/perl -w +#!/usr/bin/env perl # -*-perl-*- -use lib qw(/scratch/oetiker/rrd-trunk/lib/perl); -use lib qw(lib); use strict; use warnings; + +use FindBin; +use lib "$FindBin::Bin/../thirdparty/lib/perl5"; +use lib "$FindBin::Bin/../lib"; + use Smokeping 2.004002; Smokeping::main("etc/config.dist"); diff --git a/bin/tSmoke.dist b/bin/tSmoke index e389ff2..fc0d74f 100755 --- a/bin/tSmoke.dist +++ b/bin/tSmoke @@ -1,4 +1,4 @@ -#!/usr/bin/perl +#!/usr/bin/env perl # #----------------------------------------------- # tSmoke.pl @@ -51,8 +51,9 @@ use warnings; # -- Getopt::Long # # Point the lib variables to your implementation -use lib qw(lib); -use lib qw(/usr/local/rrdtool-1.0.39/lib/perl); +use FindBin; +use lib "$FindBin::Bin/../thirdparty/lib/perl5"; +use lib "$FindBin::Bin/../lib"; use Smokeping 2.004002; use Net::SMTP; |