You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by cu...@apache.org on 2005/10/11 17:59:55 UTC
svn commit: r312903 - /lucene/nutch/branches/mapred/bin/slaves.sh
Author: cutting
Date: Tue Oct 11 08:59:52 2005
New Revision: 312903
URL: http://svn.apache.org/viewcvs?rev=312903&view=rev
Log:
Run slave commands in parallel.
Modified:
lucene/nutch/branches/mapred/bin/slaves.sh
Modified: lucene/nutch/branches/mapred/bin/slaves.sh
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/bin/slaves.sh?rev=312903&r1=312902&r2=312903&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/bin/slaves.sh (original)
+++ lucene/nutch/branches/mapred/bin/slaves.sh Tue Oct 11 08:59:52 2005
@@ -20,6 +20,8 @@
fi
for slave in `cat $NUTCH_SLAVES`; do
- echo $slave:
- ssh -o ConnectTimeout=1 -o SendEnv='NUTCH* JAVA*' $slave "$@"
+ ssh -o ConnectTimeout=1 -o SendEnv='NUTCH* JAVA*' $slave "$@" \
+ | sed "s/^/$slave: /" &
done
+
+wait