[ROOT] root script from shell with parameter

From: Wolfgang Wagner (wagner@ekp.physik.uni-karlsruhe.de)
Date: Tue Jun 08 2004 - 18:01:43 MEST


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,

 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