From 0c275c5a1f8305b64d2cf519d29669c9d5c353ba Mon Sep 17 00:00:00 2001 From: secher Date: Thu, 16 Feb 2012 10:44:29 +0000 Subject: [PATCH] *** empty log message *** --- src/CCC/Batch_BatchManager_eCCC.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CCC/Batch_BatchManager_eCCC.cxx b/src/CCC/Batch_BatchManager_eCCC.cxx index a52ee88..55891a2 100644 --- a/src/CCC/Batch_BatchManager_eCCC.cxx +++ b/src/CCC/Batch_BatchManager_eCCC.cxx @@ -94,11 +94,11 @@ namespace Batch { string logFile = generateTemporaryFileName("CCC-submitlog"); // define command to submit batch - string subCommand = string("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; - command += " 2>&1"; + command += " 2>&1'"; cerr << command.c_str() << endl; status = system(command.c_str()); if(status) @@ -143,7 +143,7 @@ namespace Batch { iss >> ref; // define command to delete batch - string subCommand = string("ccc_mdel ") + iss.str(); + 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()); -- 2.39.2