]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
Fix for the issue 0021727: [CEA 584] sending a Yacs graph from Windows to a cluster.
authorrnv <rnv@opencascade.com>
Thu, 11 Oct 2012 10:18:09 +0000 (10:18 +0000)
committerrnv <rnv@opencascade.com>
Thu, 11 Oct 2012 10:18:09 +0000 (10:18 +0000)
src/Core/Batch_BatchManager_eClient.cxx

index fa816fc5fc4f4524fa889749b10fe2b96d9a4cb9..c9a3951275c0e119251fe81daf69d16f8febf96c 100644 (file)
@@ -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);