Re: [ROOT] How to run root in batch?

From: Pasha Murat (630)840-8237@169G ((630)840-8237@169G)
Date: Sat Sep 22 2001 - 01:44:17 MEST


Loretta Dauwe wrote:
... snip...
> Now I would like to perform this task in batch in order to
> accommodate more extensive plots and fitting. Here is a
> script runMyxc that I've tried:
> ......
> #!/bin/sh
> . /usr/local/etc/setups.sh
> #
> setup root
> #
> cd /usr/e781/data05/scratch/dauwe/
> # do root in batch mode and quit when finished
> $ROOTSYS/bin/root -b -q {
>       /usr/e781/data05/scratch/dauwe/Myxc.C;
>       Myxc t;
>       t.Loop();
>     }
> ......
> 
> But here is what happens:
> .....

hi - you can always create a script

----------- run.C
{
   gSystem->Load("/usr/e781/data05/scratch/dauwe/Myxc.C");
   Myxc t;
   t.Loop();
}
---------------
and use it as follows in batch:

>root.exe -q -b run.C

						-best, Pasha



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:00 MET