Hi Wolfgang, Do: root -q -b "test.cc(2)" In case the argument is a string, do, eg root -b -q "test.C(3,\"some string\")" Rene Brun 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