From 1abd0e3c02081d9174df0dae5d224b0b36d36d82 Mon Sep 17 00:00:00 2001 From: ribes Date: Wed, 18 Nov 2009 10:23:34 +0000 Subject: [PATCH] EXECUTABLE PATCH for compliance from eClient to Local --- src/SSH/Batch_BatchManager_eSSH.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/SSH/Batch_BatchManager_eSSH.cxx b/src/SSH/Batch_BatchManager_eSSH.cxx index 30428b2..5d3e02b 100644 --- a/src/SSH/Batch_BatchManager_eSSH.cxx +++ b/src/SSH/Batch_BatchManager_eSSH.cxx @@ -74,10 +74,17 @@ namespace Batch { exportInputFiles(job); // Launch job + // Patch until Local Manager is patched + std::string executable = param[EXECUTABLE].str(); + std::string::size_type p1 = executable.find_last_of("/"); + std::string fileNameToExecute = "./" + executable.substr(p1+1); Parametre new_param(param); - new_param[INFILE].eraseAll(); // Patch until Local Manager is patched - new_param[OUTFILE].eraseAll(); // Patch until Local Manager is patched + new_param[INFILE].eraseAll(); + new_param[OUTFILE].eraseAll(); + new_param[EXECUTABLE] = fileNameToExecute; Job * j = new Job(new_param); + + std::cerr << "BatchManager_eSSH::submitJob Local submitJob" << std::endl; JobId id = BatchManager_Local::submitJob(*j); delete j; -- 2.39.2