/[pxelator]/lib/PXElator/kvm.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/kvm.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 90 by dpavlin, Fri Jul 31 18:26:37 2009 UTC revision 92 by dpavlin, Fri Jul 31 19:42:29 2009 UTC
# Line 16  sub monitor { Line 16  sub monitor {
16          exec "xterm -fg red -e nc $server::ip 10000";          exec "xterm -fg red -e nc $server::ip 10000";
17  }  }
18    
19  sub actions { qw/reset/ }  sub actions { qw/reset window/ }
20    
21  sub reset {  sub reset {
22          my $sock = IO::Socket::INET->new( $server::ip .':10000' );          my $sock = IO::Socket::INET->new( $server::ip .':10000' );
# Line 24  sub reset { Line 24  sub reset {
24          close $sock;          close $sock;
25  }  }
26    
27    sub window {
28            system "xdotool windowactivate `xdotool search --class kvm`"
29    }
30    
31  use network;  use network;
32    
33  sub start {  sub start {

Legend:
Removed from v.90  
changed lines
  Added in v.92

  ViewVC Help
Powered by ViewVC 1.1.26