From: rnv Date: Thu, 11 Oct 2012 10:18:09 +0000 (+0000) Subject: Fix for the issue 0021727: [CEA 584] sending a Yacs graph from Windows to a cluster. X-Git-Tag: V1_6_0a1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8949eea84e39e36ac787105c063e5478d7ace20b;p=tools%2Flibbatch.git Fix for the issue 0021727: [CEA 584] sending a Yacs graph from Windows to a cluster. --- diff --git a/src/Core/Batch_BatchManager_eClient.cxx b/src/Core/Batch_BatchManager_eClient.cxx index fa816fc..c9a3951 100644 --- a/src/Core/Batch_BatchManager_eClient.cxx +++ b/src/Core/Batch_BatchManager_eClient.cxx @@ -113,7 +113,7 @@ namespace Batch { // pscp does not preserve access permissions on files string executable = string(params[EXECUTABLE]); - executable = executable.substr(executable.rfind("/") + 1,executable.length()); + executable = executable.substr(executable.rfind("\\") + 1,executable.length()); string subCommand = string("chmod u+x ") + string(params[TMPDIR]) + "/" + executable; string command = _protocol.getExecCommand(subCommand, _hostname, _username);