From: barate Date: Wed, 14 Apr 2010 13:45:01 +0000 (+0000) Subject: Integrated patch from Ivan Dutka-Malen: X-Git-Tag: V1_1_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=156bc2d2ba5ec0afa6c06ad127dbcae367b8101d;p=tools%2Flibbatch.git Integrated patch from Ivan Dutka-Malen: Take into account special input and output file names "stdin", "stdout" and "stderr" in BatchManager_Local (not done in other batch managers yet). --- diff --git a/src/Local/Batch_BatchManager_Local.cxx b/src/Local/Batch_BatchManager_Local.cxx index 5cc3b23..e9797fc 100644 --- a/src/Local/Batch_BatchManager_Local.cxx +++ b/src/Local/Batch_BatchManager_Local.cxx @@ -274,6 +274,26 @@ namespace Batch { } } + if (param.find(INFILE) != param.end()) { + Versatile V = param[INFILE]; + for(Versatile::const_iterator it=V.begin(); it!=V.end(); it++) { + Couple cpl = * static_cast(*it); + string remote = cpl.getRemote(); + if (remote == "stdin") + exec_sub_cmd << " (*it); + string remote = cpl.getRemote(); + if (remote == "stdout") exec_sub_cmd << " 1>stdout"; + if (remote == "stderr") exec_sub_cmd << " 2>stderr"; + } + } + string user; Parametre::const_iterator it = param.find(USER); if (it != param.end()) {