From 483dfdd01914ab0f3582fd0586c1e7c9d28bb3c6 Mon Sep 17 00:00:00 2001 From: crouzet Date: Fri, 26 Oct 2012 14:36:19 +0000 Subject: [PATCH] changes for eris cluster --- src/SGE/Batch_BatchManager_eSGE.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2