Re: Pass a value to C program from script

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 23 Oct 2008 13:51:13 +0200


See first and second page of the Getting Started Manual at ftp://root.cern.ch/root/doc/2GettingStarted.pdf

Rene Brun

p.hutauruk_at_physics.gla.ac.uk wrote:
> Dear all,
>
> I tried to run C++ program in shell script. You can see my C++ code and
> shell script below. Does anyone tell me where is a mistakes?
> C Program (ttt.C)
> ------------
> void ttt(UInt_t seed, int RunNumber)
> {
> ::
> ::
> ::
> }
>
>
> shell script :
> -------------
> #!/bin/tcsh
> #
> # P.T.P. Hutaururuk@ 21 october 2008
> #
> # run newnested 2 times to check stability of logZ value
>
> set objects = 100;
> set runNumber = 2;
> set iterates = 0;
> set seed=4357;
>
> while ($iterates < $runNumber)
>
> echo "Trial $iterates of $runNumber";
>
> root -l -q ttt.C($seed,$iterates);
>
> @ iterates ++;
>
> end
>
> Regards,
>
Received on Thu Oct 23 2008 - 13:52:04 CEST

This archive was generated by hypermail 2.2.0 : Sun Oct 26 2008 - 05:50:05 CET