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)" <a.sadovski@fz-rossendorf.de>
To: <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