/[Sack]/trunk/experiments/protocol-v3/server.pl
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 /trunk/experiments/protocol-v3/server.pl

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

revision 170 by dpavlin, Tue Nov 3 17:19:12 2009 UTC revision 173 by dpavlin, Tue Nov 3 17:28:57 2009 UTC
# Line 20  warn "# cloud ",dump( @cloud ); Line 20  warn "# cloud ",dump( @cloud );
20    
21  my $listen_port = 4444;  my $listen_port = 4444;
22    
23  my $node_path = '/tmp/client.pl';  my $node_path = $0;
24    $node_path =~ s{server.pl}{client.pl};
25    
26  my $lsn = IO::Socket::INET->new(Listen => 1, LocalPort => $listen_port, Reuse => 1) or die $!;  my $lsn = IO::Socket::INET->new(Listen => 1, LocalPort => $listen_port, Reuse => 1) or die $!;
27  my $sel = IO::Select->new($lsn);  my $sel = IO::Select->new($lsn);
# Line 53  sub fork_node { Line 54  sub fork_node {
54  my $node_port = 4000;  my $node_port = 4000;
55    
56  foreach my $host ( @cloud ) {  foreach my $host ( @cloud ) {
57          system "echo $node_path | cpio --create --dereference | ssh -T -F $cloud_path.ssh $host cpio --extract --make-directories --unconditional";          system "echo $node_path | cpio --create --dereference | ssh -T -F $cloud_path.ssh $host cpio --extract --make-directories --unconditional --verbose";
58          fork_node( $node_port++, $host );          fork_node( $node_port++, $host );
59  }  }
60    

Legend:
Removed from v.170  
changed lines
  Added in v.173

  ViewVC Help
Powered by ViewVC 1.1.26