Re: [ROOT] rootlogon, rootrc et al

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Mar 01 2001 - 19:18:43 MET


Hi Greg,
There are several possibilities. I recommend in a macro:
   gROOT->ProcessLine(".L macros.cc");

TROOT::ProcessLine can execute any command that you can type interactively.

Rene Brun



Gregory Novak wrote:
> 
> I have a bunch of files that I usually load with .L <filename>, but I want
> to load them automatically.  Unfortunately, I can't get either .rootrc or
> rootlogon.C to do the trick.  I get messages like "Syntax error -
> .Lmacros.cc"  (That is, the space between .L and the filename has been
> deleted).
> 
> So, where am I supposed to put commands like this?
> 
> Thanks,
> Greg



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:38 MET