Hi Stilianos,
Did you first try running your example macro independently of your sheel script?
The .L command can only be run at the prompt (or via gROOT->ProcessLine).
The content of a script needs to be proper C++ (+ a few CINT extensions).
Cheers,
Philippe.
PS. If you use
#!/bin/bash -x
at the start of your shell script, you'll be able to see what it really does.
-----Original Message----
From: owner-about-root@listserv.fnal.gov [mailto:owner-about-root@listserv.fnal.gov]On Behalf Of Stilianos Kesisoglou
Sent: Sunday, June 27, 2004 7:44 PM
To: roottalk@pcroot.cern.ch; about-root@fnal.gov
Subject: ROOT macro cannot be found
Hi,
I am having a small problem running the following shell script that invokes ROOT:
#!/bin/bash
....
.... some preliminary stuff here
....
exec $ROOTSYS/bin/root cat<<ROOTSCRIPT
{
.L myROOTmacro.C
myROOTmacro( ... some args ... )
}
ROOTSCRIPT
ROOT compain that it can't find the macro in the default path for ROOT macros.
What I don't understand is why ROOT look at this location. The macro resides in the same
directory that the shell script does, shouldn't be the first place to look there?
Thanks,
Stelios.
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET