From 055276830af22c975220b6242213de85de531e1c Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Fri, 19 Feb 2010 21:33:12 +0000 Subject: [PATCH] run test on all hosts git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@161 191e9f34-6774-4a6d-acfc-7664dacd4a2a --- recepies/netpipe-tcp/test.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/recepies/netpipe-tcp/test.sh b/recepies/netpipe-tcp/test.sh index 9367ffa..a8ad92b 100755 --- 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 -- 2.20.1