[Swift-commit] Cog update

swift at ci.uchicago.edu swift at ci.uchicago.edu
Thu Jan 12 00:20:04 CST 2012


------------------------------------------------------------------------
r3347 | hategan | 2012-01-12 00:18:14 -0600 (Thu, 12 Jan 2012) | 1 line

removed some debugging stuff and added ability to change ssh command
------------------------------------------------------------------------
Index: modules/provider-ssh/src/org/globus/cog/abstraction/impl/sshcl/execution/JobSubmissionTaskHandler.java
===================================================================
--- modules/provider-ssh/src/org/globus/cog/abstraction/impl/sshcl/execution/JobSubmissionTaskHandler.java	(revision 3346)
+++ modules/provider-ssh/src/org/globus/cog/abstraction/impl/sshcl/execution/JobSubmissionTaskHandler.java	(working copy)
@@ -26,12 +26,14 @@
     protected String[] buildCmdArray(JobSpecification spec) {
         Service service = getTask().getService(0);
         
+        String ssh = (String) getTask().getAttribute("ssh");
+        if (ssh == null) {
+            ssh = "ssh";
+        }
+        
         List<String> cmdarray = new ArrayList<String>();
-        cmdarray.add("ssh");
-        //cmdarray.add("/home/mike/soft/bin/tssh");
-        //cmdarray.add("-v");
-        //cmdarray.add("-v");
-        //cmdarray.add("-v");
+        cmdarray.add(ssh);
+
         if (spec.getAttribute("username") != null) {
             cmdarray.add("-l");
             cmdarray.add(spec.getAttribute("username").toString());



More information about the Swift-commit mailing list