root/honeyclient/branches/exp/bhenderson-browser_automation/bin/StartAgent.pl

Revision 1499, 0.7 kB (checked in by kindlund, 9 months ago)

Merging simpler_agent branch into trunk.

  • Property svn:executable set to *
  • Property svn:keywords set to Id "$file"
Line 
1 #!perl -Ilib
2
3 # $Id$
4
5 use strict;
6 use warnings;
7 use Carp ();
8
9 use Term::ReadKey;
10 use HoneyClient::Util::Config qw(getVar);
11 use HoneyClient::Agent;
12 use HoneyClient::Util::SOAP qw(getClientHandle);
13 use Data::Dumper;
14 use MIME::Base64 qw(decode_base64 encode_base64);
15 use Storable qw(thaw nfreeze);
16 use Log::Log4perl qw(:easy);
17
18 # The global logging object.
19 our $LOG = get_logger();
20
21 our ($stub, $som);
22 our $URL = HoneyClient::Agent->init();
23
24 print "URL: " . $URL. "\n";
25
26 # Halt when we get any sort of keyboard input.
27 my $key;
28 ReadMode 4; # Turn off controls keys
29 while (not defined ($key = ReadKey(-1))) {
30     # No key yet
31 }
32 ReadMode 0; # Reset tty mode before exiting
33
34 HoneyClient::Agent->destroy();
Note: See TracBrowser for help on using the browser.