|
From: <ha...@us...> - 2008-02-12 17:32:05
|
Revision: 1893
http://cogkit.svn.sourceforge.net/cogkit/?rev=1893&view=rev
Author: hategan
Date: 2008-02-12 09:32:00 -0800 (Tue, 12 Feb 2008)
Log Message:
-----------
attempt to make this behave better if the job directory is invalid
Modified Paths:
--------------
trunk/current/src/cog/modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/pbs/PBSExecutor.java
Modified: trunk/current/src/cog/modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/pbs/PBSExecutor.java
===================================================================
--- trunk/current/src/cog/modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/pbs/PBSExecutor.java 2008-02-12 17:29:05 UTC (rev 1892)
+++ trunk/current/src/cog/modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/pbs/PBSExecutor.java 2008-02-12 17:32:00 UTC (rev 1893)
@@ -143,9 +143,6 @@
writeAttr("count", "-l nodes=", wr);
writeAttr("maxwalltime", "-l walltime=", wr);
writeAttr("queue", "-q ", wr);
- if (spec.getDirectory() != null) {
- wr.write("#PBS -d " + quote(spec.getDirectory()) + '\n');
- }
if (spec.getStdInput() != null) {
throw new IOException("The PBSlocal provider cannot redirect STDIN");
}
@@ -178,6 +175,9 @@
logger.debug("Wrapper after variable substitution: " + wrapper);
}
}
+ if (spec.getDirectory() != null) {
+ wr.write("cd " + quote(spec.getDirectory()) + " && ");
+ }
wr.write(quote(spec.getExecutable()));
List args = spec.getArgumentsAsList();
if (args != null && args.size() > 0) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|