Re: [ROOT] redirecting stdout, stderr

From: Frederic Sarazin (sarazin@triumf.ca)
Date: Thu Mar 21 2002 - 02:28:27 MET


Sorry Final add-on:

Problem solved with the freopen() method... I had to fflush stdout and
stderr.

Concerning the problem I was just reporting... this happens if one use the
TAB
key as a short cut...

root [0] .x Start.C // script-test

root [1] gROOT->ProcessLine(".>Filename")
Output will be saved in file Filename! ('>' to display on screen)

root [2] gROOT->ProcessLine("gPad") //without using the TAB Key - Redirection
Okay

root [3] gROOT->Pro
ProcessLine
ProcessLineSync
ProcessLineFast
Proof
root [3] gROOT->ProcessLine("gPad") //with the TAB Key - Redirection failed
(class TPad*)0x8761868

Just for the records,

Fred

Frederic Sarazin wrote:

> I found the following problem:
>
> root [0] gROOT->ProcessLine(".>filename")      //stdout redirected to
> filename
> Output will be saved in file filename! ('>' to display on screen)
>
> root [1] .x Start.C // start a test script (not a GUI)
>
> root [2] gPad         // redirection okay !
>
> root [3] gROOT->ProcessLine("gPad")    // redirection failed !
> (class TPad*)0x8781078
>



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:46 MET