Hi Wolfgang,
As Rene has already answered to a similar question
(see http://root.cern.ch/phpBB2/viewtopic.php?t=777)
the syntax is:
root -q -b 'test.cc(2)'
Cheers, Ilka
Wolfgang Wagner wrote:
>Hi,
>
>I would like to execute a root script from the shell
>using a function with parameter, e.g.
>
>defined in file test.cc :
>
>void test(int number)
>{
> cout << "number=" << number << endl;
>}
>
>root -q -b test.cc(2)
>
>does not work. It works from within root of course. But what is
>the syntax from a shell.
>
>Thank you,
> Wolfgang
>
>-------------------------------------------------------------------------
> Dr. Wolfgang Wagner
> Universitaet Karlsruhe - Institut fuer Experimentelle Kernphysik (EKP)
> Wolfgang-Gaede-Strasse 1, 76128 Karlsruhe
>
> E-Mail: wagner@ekp.physik.uni-karlsruhe.de Tel.: +49-721-608-3576
>-------------------------------------------------------------------------
>
>
>
>
>
>
>
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET