[Swift-commit] r4097 - SwiftApps/SwiftR/Swift/exec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Tue Feb 15 11:29:19 CST 2011


Author: tga
Date: 2011-02-15 11:29:19 -0600 (Tue, 15 Feb 2011)
New Revision: 4097

Modified:
   SwiftApps/SwiftR/Swift/exec/start-swift
Log:
Added in working directory and log file locations for SwiftR


Modified: SwiftApps/SwiftR/Swift/exec/start-swift
===================================================================
--- SwiftApps/SwiftR/Swift/exec/start-swift	2011-02-15 17:23:41 UTC (rev 4096)
+++ SwiftApps/SwiftR/Swift/exec/start-swift	2011-02-15 17:29:19 UTC (rev 4097)
@@ -294,16 +294,20 @@
     # so we have multiple workers per node.  In future could
     # add support for virtual node mode, etc
     qsub -t "$time" -n $nodes $queueDirective $kernDirective \
-	$projDirective -O SwiftR-workers \
+	$projDirective -e `pwd`/SwiftR-workers.err \
+        -o `pwd`/SwiftR-workers.out --debuglog `pwd`/cobalt.log \
+        --cwd / \
 	--env WORKER_LOGGING_LEVEL=$workerLogging \
 	 /usr/bin/perl $SWIFTBIN/worker.pl $CONTACT \
-         $HOME/.globus/coasters $IDLETIMEOUT
+         $HOME/.globus/coasters $IDLETIMEOUT >$jobidfile     
+    #TODO: change current working directory
+    succ=$?
   else
     qsub batch.sub >$jobidfile
     succ=$?
   fi
 
-  if [ $? -eq 0 ]
+  if [ $succ -eq 0 ]
   then
     echo Started workers from batch job $(cat $jobidfile)
   else




More information about the Swift-commit mailing list