diff --git a/MyDaq/src/eloghandler.cc b/MyDaq/src/eloghandler.cc index 89ebca06b0474997955c06d66f2fabb89e830d9b..448515fe35a083989f6d4fd847c04f288619010a 100644 --- a/MyDaq/src/eloghandler.cc +++ b/MyDaq/src/eloghandler.cc @@ -14,17 +14,17 @@ using namespace std; int ElogHandler::BegrunLog ( const int run, std::string who, std::string filename) { - + ostringstream command; command << "elog -h " << hostname << " -p " << port << " -l " << logbookname << " -a \"Author=" << who << "\"" << - " -a \"Subject=Run " << run << " started\" " << + " -a \"Subject=Run " << run << " started\" " << "\"Run " << run << " started with file " << filename << "\"" << " >/dev/null 2<&1" << endl; - // cout << command.str() << endl; + cout << command.str() << endl; system (command.str().c_str() ); return 0; } @@ -35,11 +35,11 @@ int ElogHandler::EndrunLog ( const int run, std::string who, const int events, c ostringstream command; - command << "elog -h " << hostname << " -p " << port - << " -l " << logbookname<< " -a \"Author=" << who << "\"" - << " -a \"Subject=Run " << run << " ended\" " - << "\"Run " << run - << " ended with " << events + command << "elog -h " << hostname << " -p " << port + << " -l " << logbookname<< " -a \"Author=" << who << "\"" + << " -a \"Subject=Run " << run << " ended\" " + << "\"Run " << run + << " ended with " << events << " events, size is " << volume << " MB" << " duration " << time(0) - starttime << " s\" " << " >/dev/null 2<&1" << endl;