From 608628810018f9a3e5d4fa0294a6c7b31b79e32f Mon Sep 17 00:00:00 2001 From: agheata Date: Tue, 11 Sep 2012 08:14:22 +0000 Subject: [PATCH] Added host name and alien site to fileinfo.log --- ANALYSIS/AliAnalysisManager.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ANALYSIS/AliAnalysisManager.cxx b/ANALYSIS/AliAnalysisManager.cxx index 9455399e52c..620a873e64a 100644 --- a/ANALYSIS/AliAnalysisManager.cxx +++ b/ANALYSIS/AliAnalysisManager.cxx @@ -817,6 +817,16 @@ void AliAnalysisManager::PackOutput(TList *target) out << "init_time " << fInitTime << endl; out << "io_mng_time " << fIOTime << endl; out << "exec_time " << fCPUTime << endl; + TString aliensite = gSystem->Getenv("ALIEN_SITE"); + out << "alien_site " << aliensite << endl; + out << "host_name "; + TString hostname = gSystem->Getenv("ALIEN_HOSTNAME"); + if (hostname.IsNull()) { + out.close(); + gSystem->Exec(Form("hostname -f >> %s", fFileInfoLog.Data())); + } else { + out << hostname << endl; + } } } -- 2.43.0