Skip to content
Snippets Groups Projects
Commit 7a0555f3 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

pridano nacitani adresare lib a modulu WardenClient.pm pomoci promenne __FILE__

parent ae26be25
No related branches found
No related tags found
No related merge requests found
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
use strict; use strict;
use warnings; use warnings;
use File::Basename;
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Warden 2.2 Client, Info, Example # Warden 2.2 Client, Info, Example
# #
...@@ -18,12 +20,12 @@ use warnings; ...@@ -18,12 +20,12 @@ use warnings;
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# This code should developer add into his/her application. # This code should developer add into his/her application.
# Path to warden-client directory # Load Warden client library and use main module
my $warden_path = '/opt/warden-client/'; my $bin = File::Basename::dirname(__FILE__);
use lib "$bin/../lib";
# Inclusion of warden-client receiving functionality use WardenClient;
require $warden_path . '/lib/WardenClientCommon.pm';
# obtain information about already registered clients
my @clients = WardenClient::getClientInfo() or exit 1; # receive data or exit my @clients = WardenClient::getClientInfo() or exit 1; # receive data or exit
print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"; print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment