Salome HOME
bug on ccrt + eris
authorcrouzet <crouzet>
Thu, 13 Dec 2012 11:29:13 +0000 (11:29 +0000)
committercrouzet <crouzet>
Thu, 13 Dec 2012 11:29:13 +0000 (11:29 +0000)
src/CCC/Batch_BatchManager_eCCC.cxx
src/Core/Batch_CommunicationProtocol.cxx

index c13b0f3b75568fb5f70bda107274e98fd9eb2070..83443ee9fd2dfdf62318f192e06657fc33806f88 100644 (file)
@@ -94,7 +94,7 @@ namespace Batch {
     string logFile = generateTemporaryFileName("CCC-submitlog");
 
     // define command to submit batch
-    string subCommand = string("bash -l -c \"cd ") + workDir + "; ccc_msub " + fileNameToExecute + "_Batch.sh\"";
+    string subCommand = string("bash -l -c \\\"cd ") + workDir + "; ccc_msub " + fileNameToExecute + "_Batch.sh\\\"";
     string command = _protocol.getExecCommand(subCommand, _hostname, _username);
     command += " > ";
     command += logFile;
@@ -143,7 +143,7 @@ namespace Batch {
     iss >> ref;
 
     // define command to delete batch
-    string subCommand = string("bash -l -c \"ccc_mdel ") + iss.str() + string("\"");
+    string subCommand = string("bash -l -c \\\"ccc_mdel ") + iss.str() + string("\\\"");
     string command = _protocol.getExecCommand(subCommand, _hostname, _username);
     cerr << command.c_str() << endl;
     status = system(command.c_str());
@@ -195,7 +195,7 @@ namespace Batch {
     string logFile = generateTemporaryFileName(string("CCC-querylog-id") + jobid.getReference());
 
     // define command to query batch
-    string subCommand = string("bash -l -c \"bjobs ") + iss.str() + string("\"");
+    string subCommand = string("bash -l -c \\\"bjobs ") + iss.str() + string("\\\"");
     string command = _protocol.getExecCommand(subCommand, _hostname, _username);
     command += " > ";
     command += logFile;
index 82f5b4f566bc74188a78e4b0fbdeda7962715a10..8a3ef6ada2b5c7591028c54e8208c5305b1ba94a 100644 (file)
@@ -151,11 +151,7 @@ namespace Batch {
       // if the argument contains spaces, we surround it with simple quotes (Linux)
       // or double quotes (Windows)
       if (commandArgs[i].find(' ') != string::npos) {
-#ifdef WIN32
         commandStr += string("\"") + commandArgs[i] + "\"";
-#else
-        commandStr += string("\'") + commandArgs[i] + "\'";
-#endif
       } else {
         commandStr += commandArgs[i];
       }