Salome HOME
- Changed tests to use Python (for portability)
[tools/libbatch.git] / src / LSF / BatchManager_LSF.cxx
index d35532e9e0d8e7c04e9a21f3dc4a950d0af93f2e..e9388fa05e157dee61c18b049885ab6edc8705ca 100644 (file)
@@ -234,7 +234,16 @@ namespace Batch {
     tempOutputFile << "export LIBBATCH_NODEFILE" << endl;
 
     // Launch the executable
-    tempOutputFile << "./" + fileNameToExecute << endl;
+    tempOutputFile << "./" + fileNameToExecute;
+    if (params.find(ARGUMENTS) != params.end()) {
+      Versatile V = params[ARGUMENTS];
+      for(Versatile::const_iterator it=V.begin(); it!=V.end(); it++) {
+        StringType argt = * static_cast<StringType *>(*it);
+        string     arg  = argt;
+        tempOutputFile << " " << arg;
+      }
+    }
+    tempOutputFile << endl;
 
     // Remove the node file
     tempOutputFile << "rm $LIBBATCH_NODEFILE" << endl;