[Swift-commit] r7850 - SwiftApps/swift-galaxy/swift

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Fri May 9 09:35:52 CDT 2014


Author: ketan
Date: 2014-05-09 09:35:51 -0500 (Fri, 09 May 2014)
New Revision: 7850

Modified:
   SwiftApps/swift-galaxy/swift/swiftforeach.sh
Log:
stdin from /dev/null and create outloc dir

Modified: SwiftApps/swift-galaxy/swift/swiftforeach.sh
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeach.sh	2014-05-09 05:01:52 UTC (rev 7849)
+++ SwiftApps/swift-galaxy/swift/swiftforeach.sh	2014-05-09 14:35:51 UTC (rev 7850)
@@ -59,6 +59,9 @@
   shift
 done
 
+#create outloc dir
+mkdir -p $outloc
+
 #workout the stringargs 
 if [ "${stringargs}"  ] ; then
     stringarrayexpr='string stringargs[]=['$(echo $stringargs | sed -e 's/ *$//g' -e 's/[^ ][^ ]*/"&"/g' -e 's/ /,/g')'];';
@@ -235,18 +238,18 @@
 EXITCODE=0
 case $sites in  
   "localhost" )
-   echo "in localhost" >> /tmp/status.txt
+   #echo "in localhost" >> /tmp/status.txt
    STC=$(\which stc)
-   echo "got stc" >> /tmp/status.txt
+   #echo "got stc" >> /tmp/status.txt
    turbine=$(\which turbine)
-   echo "got turbine" >> /tmp/status.txt
+   #echo "got turbine" >> /tmp/status.txt
    $STC -j $(\which java) $wdir/script.swift 2>$logfile
-   echo "done running stc" >> /tmp/status.txt
-   echo $turbine -n $n $wdir/script.tcl "${swiftargs}" >> /tmp/status.txt
-   $turbine -V -n $n $wdir/script.tcl "${swiftargs}" >> /tmp/status.txt
-   echo "done running turbine, for $n" >> /tmp/status.txt
+   #echo "done running stc" >> /tmp/status.txt
+   #echo $turbine -n $n $wdir/script.tcl "${swiftargs}" >> /tmp/status.txt
+   $turbine -n $n $wdir/script.tcl "${swiftargs}" </dev/null
+   #echo "done running turbine, for $n" >> /tmp/status.txt
    EXITCODE=$?
-   echo "exit code obtained" >> /tmp/status.txt
+   #echo "exit code obtained" >> /tmp/status.txt
 	;;
 "Vesta" )
   TURBINE_HOME=/home/wozniak/Public/sfw/turbine




More information about the Swift-commit mailing list