projects
/
sysadmin-cookbook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ace0800
)
run test on all hosts
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 19 Feb 2010 21:33:12 +0000
(21:33 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 19 Feb 2010 21:33:12 +0000
(21:33 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@161
191e9f34
-6774-4a6d-acfc-
7664dacd4a2a
recepies/netpipe-tcp/test.sh
patch
|
blob
|
history
diff --git
a/recepies/netpipe-tcp/test.sh
b/recepies/netpipe-tcp/test.sh
index
9367ffa
..
a8ad92b
100755
(executable)
--- a/
recepies/netpipe-tcp/test.sh
+++ b/
recepies/netpipe-tcp/test.sh
@@
-1,7
+1,9
@@
#!/bin/sh
-echo "start NPtcp on "`cat hosts`" and press enter"
-read
-
cd /srv/sysadmin-cookbook/recepies/netpipe-tcp/
-cat hosts | xargs -i NPtcp -h {} -u 1048576 -o /tmp/{}.np
+while read host ; do
+ echo "### $host"
+ ssh $host NPtcp &
+ sleep 5
+ NPtcp -h $host -u 1048576 -o /tmp/$host.np
+done < hosts