/[sysadmin-cookbook]/recepies/netpipe-tcp/test.sh
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 /recepies/netpipe-tcp/test.sh

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

revision 160 by dpavlin, Fri Feb 19 21:24:49 2010 UTC revision 161 by dpavlin, Fri Feb 19 21:33:12 2010 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
 echo "start NPtcp on "`cat hosts`" and press enter"  
 read  
   
3  cd /srv/sysadmin-cookbook/recepies/netpipe-tcp/  cd /srv/sysadmin-cookbook/recepies/netpipe-tcp/
4  cat hosts | xargs -i NPtcp -h {} -u 1048576 -o /tmp/{}.np  while read host ; do
5            echo "### $host"
6            ssh $host NPtcp &
7            sleep 5
8            NPtcp -h $host -u 1048576 -o /tmp/$host.np
9    done < hosts

Legend:
Removed from v.160  
changed lines
  Added in v.161

  ViewVC Help
Powered by ViewVC 1.1.26