RE: [ROOT] Question about existence of ROOT without X-connection

From: Valeri Fine (fine@bnl.gov)
Date: Mon Mar 15 2004 - 17:37:56 MET


ROOT does check whether the env. variable "DISPLAY" is defined. 
If there is no such variable then the script will be run as "batch job"
with no attempt to make any X connection.
This way one doesn't need to do anything with the script to switch from
batch to interactive and back.
 
Just my extra 2 cents :-)
 
 
----
Best regards
                   Valeri
 
-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch] On Behalf Of Stilianos Kesisoglou
Sent: Monday, March 15, 2004 10:55 AM
To: Alexandre Sadovski (1209); roottalk@pcroot.cern.ch
Subject: Re: [ROOT] Question about existance of ROOT without
X-connection
 
Hi Alexander,
 
    On every script that you want to run without X-connection
just include the following line;
 
    gROOT->SetBatch(kFALSE);
 
    This line must be the first line appearing on your script otherwise
ROOT will attempt to make an X-connection.
    So write your script like:
 
{
    gROOT->SetBatch(kFALSE);
 
    ....    what ever you want here    ....
 
}
 
    Obviously if you set the flag to kTRUE  the X-connection will
be made as usual (that's the default)
 
Stelios.
 
----- Original Message ----- 
From: "Alexandre Sadovski (1209)" < <mailto:a.sadovski@fz-rossendorf.de>
a.sadovski@fz-rossendorf.de>
To: < <mailto:roottalk@pcroot.cern.ch> roottalk@pcroot.cern.ch>
Sent: Monday, March 15, 2004 9:03 AM
Subject: [ROOT] Question about existance of ROOT without X-connection
 
> Dear ROOT-ers!
> 
> sometimes it is so nice to have an application running on a remote
> computer, completely without any graphical interaction with
> some other PC (for example at home). So that X-connection is
> even dont have to be esatblished..!. 
> 
> I know how to disable splash window of ROOT (root -l -b batch.C), 
> but even if I call "root -l -b" or "root.exe batch.C"
> it looks that ROOT requeres an X-connection to start.
> 
> Can one disable that by some method?? I mean can I run root 
> without any X-connection (just for simple things)?
> 
> Sorry for somehow not very high-end question,
> Alexander
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET