Salome HOME
*** empty log message ***
authorsecher <secher>
Thu, 16 Feb 2012 14:23:17 +0000 (14:23 +0000)
committersecher <secher>
Thu, 16 Feb 2012 14:23:17 +0000 (14:23 +0000)
src/CCC/Batch_BatchManager_eCCC.cxx

index 55891a246be25d0d4d14354c7f179f1cec5ad413..bb890364b118f7908bc4e89baa991fcac27b05b7 100644 (file)
@@ -94,11 +94,11 @@ 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;
-    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("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());