diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-11 12:03:03 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-11 12:03:03 +0200 |
commit | 5e4b9fe9ed3975e519e317e07288fcee1a2180a3 (patch) | |
tree | d337bd23e26f3b6007843805d89d2719a9de19ef | |
parent | 72898b7566ea545be6ee94a91a5ec29ef9bf0aa0 (diff) | |
download | smokeping-5e4b9fe9ed3975e519e317e07288fcee1a2180a3.tar.gz smokeping-5e4b9fe9ed3975e519e317e07288fcee1a2180a3.tar.xz |
fix library paths and start perl via env, following todays custom
-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; |