From: crouzet Date: Fri, 26 Oct 2012 14:36:19 +0000 (+0000) Subject: changes for eris cluster X-Git-Tag: V1_6_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=483dfdd01914ab0f3582fd0586c1e7c9d28bb3c6;p=tools%2Flibbatch.git changes for eris cluster --- diff --git a/src/SGE/Batch_BatchManager_eSGE.cxx b/src/SGE/Batch_BatchManager_eSGE.cxx index f6489a4..e576631 100644 --- a/src/SGE/Batch_BatchManager_eSGE.cxx +++ b/src/SGE/Batch_BatchManager_eSGE.cxx @@ -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;