[Swift-commit] r6914 - SwiftApps/Swift-MapRed/swift-t-simple/put-get
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Wed Aug 21 15:02:18 CDT 2013
Author: wozniak
Date: 2013-08-21 15:02:18 -0500 (Wed, 21 Aug 2013)
New Revision: 6914
Modified:
SwiftApps/Swift-MapRed/swift-t-simple/put-get/setup.zsh
Log:
Minor improvements
Modified: SwiftApps/Swift-MapRed/swift-t-simple/put-get/setup.zsh
===================================================================
--- SwiftApps/Swift-MapRed/swift-t-simple/put-get/setup.zsh 2013-08-21 17:47:55 UTC (rev 6913)
+++ SwiftApps/Swift-MapRed/swift-t-simple/put-get/setup.zsh 2013-08-21 20:02:18 UTC (rev 6914)
@@ -1,8 +1,13 @@
#!/bin/zsh -e
+# Hosts file
HOSTS=$1
+# Port on which to run chirp_server
PORT=$2
+# Number of files to create per server
+FILES=3
+
zmodload zsh/files
if [[ ${#*} != 2 ]]
@@ -17,13 +22,11 @@
print "hostname:*.mcs.anl.gov rwlda"
} > ${DEFAULT_ACL}
-set -x
-
# Start servers
for H in $( < ${HOSTS} )
do
- CHIRP_ROOT=${HOME}/cr_${H}
- ssh ${HOST} mkdir -p ${HOME}/cr_${H}
+ CHIRP_ROOT=${HOME}/CR/${H}
+ ssh ${HOST} mkdir -p ${CHIRP_ROOT}
ssh ${H} chirp_server -p ${PORT} -r ${CHIRP_ROOT} -A ${DEFAULT_ACL} &
done
@@ -31,7 +34,7 @@
i=0
for H in $( < ${HOSTS} )
do
- for (( j=0 ; j<10 ; j++ ))
+ for (( j=0 ; j<${FILES} ; j++ ))
do
F=file-${i}.txt
echo "FILE:${i}" > ${F}
More information about the Swift-commit
mailing list