>From the ROOT prompt do: root [1] .x macro.C > out.log root [2] printf("bla\n"); >> out.log If you want to do it permanently for the session using things like freopen, have a look at: http://root.cern.ch/lxr/source/proof/src/TProofServ.cxx#620 Cheers, Fons. > "Dr. D. Sideris" wrote: > > Dear Rooters, is there a simple way to redirect the standard output of ROOT to > a file? I've tried 'freopen' but for some reason it doesn't work. > > Dimitris -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:37 MET