Hi Sebastien,
Something else to consider is that the process which
``sources'' your file will exit immediatly afterwards.
So if it only contains commands to be executed you do
not need to source it (just execute it), or if it sets
variables, it probably does not do what you want/expect.
(hope that makes sense)
Cheers,
Maarten.
On Mon, 2002-08-05 at 14:06, Fons Rademakers wrote:
> We use the system() call which uses /bin/sh. So to do what you want do:
>
> .! . .setup.sami
>
> i.e. replace "source" by a ".".
>
> Cheers, Fons.
>
>
> On Mon, 2002-08-05 at 19:07, Sebastien Greder wrote:
> >
> > Hello Rooters,
> >
> > I have a simple pb in a root session :
> >
> > root [6] .! date
> > Mon Aug 5 11:42:56 CDT 2002
> > root [7] .! source .setup.sampi
> > sh: source: not found
> >
> > but a man source gives an output.
> >
> > So I was wondering if ROOT does not know about all shell commands ?
> > Or there are some protected commands ?
> >
> > In fact I would like to do a : gROOT->ProcessLine("source .afilename")
> > in my script.
> >
> >
> > Running with version 3.03/07 under IRIX, version built with KCC 4.0
> >
> > Cheers,
> >
> > sebastien
> --
> Org: CERN, European Laboratory for Particle Physics.
> Mail: 1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248
> WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
>
--
Dr. Maarten Ballintijn
MASSACHUSETTS INSTITUTE OF TECHNOLOGY Email: maartenb@mit.edu
Room 24-410 Phone: +1 (617) 253 4184
77 Massachusetts Avenue Fax: +1 (617) 253 4360
Cambridge, MA 02139, USA http://www.mit.edu/~maartenb
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:03 MET