Le 6 avr. 2010 ā 10:55, Ida Häggström a écrit :
> I'm quite new to ROOT so I've run into a problem with automating ROOT-runs. I run a couple of C-scripts in ROOT that calls for some ROOT-data files and creates new files (not .root). So, for one file I do this:
>
> ------------------------------------------------------------
> >> root
> root [0] .x myCScript.C (this C-script calls for "rootFile_0.root" and creates a new file)
> root [1] .x mySecondCScript.C (this script calls for the output of the first C-script and creates a new file)
> root [2] .q
> ------------------------------------------------------------
Hi,
you can pass commands to the ROOT prompt directly from your shell (or a shell script) by doing, following your example:
$ root -l <<EOC
.x myCScript.C .x mySecondCScript.C .q
Cheers,
-- : Dario Berzano : Laboratoire Subatech - Nantes, France : Wiki: http://newton.ph.unito.it/~berzano : GPG: http://newton.ph.unito.it/~berzano/gpg : Mobile: +39 348 72 22 520Received on Tue Apr 06 2010 - 11:10:42 CEST
This archive was generated by hypermail 2.2.0 : Tue Apr 06 2010 - 11:50:01 CEST