Re: Processing Macros in background

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Mon, 5 Jul 2010 17:28:09 +0200


Hi Thomas,

background processes cannot write to the TTY. If you have an idea (or a patch! :-) how to get it to work nevertheless then please let us know.

Cheers, Axel.

Thomas Lauf wrote on 07/05/2010 04:59 PM:
> Hello ROOTers,
>
> is there a way to process a ROOT macro in the background?
>
> Consider this simple macro Test.C:
> {
> cout << "Hello World" << endl;
> }
>
> If I call ROOT to process it
> ]> root -q -l Test.C
>
> in the shell I get the expected output:
>
> root [0]
> Processing Test.C...
> Hello World
> ]>
>
> But if I want ROOT to process it in the background
> I get no output until I fetch the process to foreground again
> ]> root -q -l Test.C &
> [4] 16584
> ]> fg
> root -q -l Test.C
> root [0]
> Processing Test.C...
> Hello World
> ]>
>
> Is there a way to make this work?
>
> The thing is I have a application (e.g. Prog1) which calls another one
> (e.g. Prog2) to do some calculation. Prog2 uses Rint as user interface.
> The call from Prog1 succeeds as long as it is run in foreground. If run
> in the background I run into the same problem as shown above.
>
> Regards
>
> Thomas Lauf
>
>
Received on Mon Jul 05 2010 - 17:28:15 CEST

This archive was generated by hypermail 2.2.0 : Tue Jul 06 2010 - 23:50:01 CEST