Skip to content
Snippets Groups Projects
Commit 82f52e6c authored by tzhang74's avatar tzhang74
Browse files

version 1.0 -- debug 9

parent 211a7bfa
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment