]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
EXECUTABLE PATCH for compliance from eClient to Local
authorribes <ribes>
Wed, 18 Nov 2009 10:23:34 +0000 (10:23 +0000)
committerribes <ribes>
Wed, 18 Nov 2009 10:23:34 +0000 (10:23 +0000)
src/SSH/Batch_BatchManager_eSSH.cxx

index 30428b223b1965d6244367f3c1dd93b4efdcfba7..5d3e02b543a91e51a70823036edea3618cfc75d7 100644 (file)
@@ -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;