[Swift-commit] cog r3764

swift at ci.uchicago.edu swift at ci.uchicago.edu
Tue Aug 20 10:25:04 CDT 2013


------------------------------------------------------------------------
r3764 | davidkelly999 | 2013-08-20 10:24:35 -0500 (Tue, 20 Aug 2013) | 2 lines

Fix for duplicate node names in PBS_NODEFILE (Blues)

------------------------------------------------------------------------
Index: modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/pbs/PBSExecutor.java
===================================================================
--- modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/pbs/PBSExecutor.java	(revision 3763)
+++ modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/pbs/PBSExecutor.java	(working copy)
@@ -341,7 +341,7 @@
 
 	protected void writeMultiJobPreamble(Writer wr, String exitcodefile)
             throws IOException {
-        wr.write("NODES=`cat $PBS_NODEFILE`\n");
+        wr.write("NODES=$( cat $PBS_NODEFILE | uniq )\n");
         wr.write("ECF=" + exitcodefile + "\n");
         wr.write("INDEX=0\n");
         wr.write("for NODE in $NODES; do\n");



More information about the Swift-commit mailing list