Hi,
I would like to create a shellscript which can take any ROOT macro (with 0,1 or more variables) as argument, launch root, execute the macro with the given arguments and write the output into a .out file and the errors into a .err file.
So far, my script looks like this:
#!/bin/sh
root -l -q $1 1>$1.out 2>$1.err
Unfortunately, I can't use any macros with arguments with it.
I tried (echo .x $1 | root -l -q) 1>$1.out 2>$1.err, but it didn't work.
I also want to make it so that if the macro is foobar.C, the output files
will be foobar.out and foobar.err.
But this is less related to Root of course.
My main problem is passing the macro with arguments correctly to root. Received on Fri Mar 09 2007 - 20:13:47 CET
This archive was generated by hypermail 2.2.0 : Sat Mar 10 2007 - 05:50:01 CET