Salome HOME
changes for eris cluster
authorcrouzet <crouzet>
Fri, 26 Oct 2012 14:36:19 +0000 (14:36 +0000)
committercrouzet <crouzet>
Fri, 26 Oct 2012 14:36:19 +0000 (14:36 +0000)
src/SGE/Batch_BatchManager_eSGE.cxx

index f6489a437495a4d510a0dfab7c06393271f2e663..e576631a4bde0b8c338c2676cc12959fb660f1ee 100644 (file)
@@ -90,7 +90,7 @@ namespace Batch {
     string logFile = generateTemporaryFileName("SGE-submitlog");
 
     // define command to submit batch
-    string subCommand = string("bash -l -c \"cd ") + workDir + "; qsub " + fileNameToExecute + "_Batch.sh\"";
+    string subCommand = string("bash -l -c \\\"cd ") + workDir + "; qsub " + fileNameToExecute + "_Batch.sh\\\"";
     string command = _protocol.getExecCommand(subCommand, _hostname, _username);
     command += " > ";
     command += logFile;
@@ -138,7 +138,7 @@ namespace Batch {
     iss >> ref;
 
     // define command to delete batch
-    string subCommand = string("bash -l -c \"qdel ") + iss.str() + string("\"");
+    string subCommand = string("bash -l -c \\\"qdel ") + iss.str() + string("\\\"");
     string command = _protocol.getExecCommand(subCommand, _hostname, _username);
     cerr << command.c_str() << endl;
     status = system(command.c_str());
@@ -190,7 +190,7 @@ namespace Batch {
     string logFile = generateTemporaryFileName(string("SGE-querylog-id") + jobid.getReference());
 
     // define command to query batch
-    string subCommand = string("bash -l -c \"qstat | grep ") + iss.str() + string("\"");
+    string subCommand = string("bash -l -c \\\"qstat | grep ") + iss.str() + string("\\\"");
     string command = _protocol.getExecCommand(subCommand, _hostname, _username);
     command += " > ";
     command += logFile;