RE: gSystem->Exec in compiled code

From: Arthur E. Snyder <snyder_at_slac.stanford.edu>
Date: Fri, 2 Sep 2005 18:04:58 -0700 (PDT)


ls works. mv works when I do it from a intrepreted macro rather than a compiled one ..

-Art

A.E. Snyder, Group EC                        \!c*p?/
SLAC Mail Stop #95                          ((.   .))
Box 4349                                        |
Stanford, Ca, USA, 94309                      '\|/`
e-mail:snyder_at_slac.stanford.edu                 o
phone:650-926-2701                              _
http://www.slac.stanford.edu/~snyder          BaBar
FAX:650-926-2657                          Collaboration



On Fri, 2 Sep 2005, Philippe Canal wrote:

> Hi Art,
>
> I can not reproduce this problem!
> Do simplier command (ls, echo, etc.) works when using exec?
> (i.e. is it a file permission problem or an exec problem?
>
> Cheers,
> Philippe
>
> -----Original Message-----
> From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
> On Behalf Of Arthur E. Snyder
> Sent: Wednesday, August 31, 2005 1:32 PM
> To: Rene Brun
> Cc: 'roottalk (Mailing list discussing all aspects of the ROOT system)'
> Subject: [ROOT] gSystem->Exec in compiled code
>
> I recetently updated to a new versioin of root.
> This one:
>
>
> * *
> * W E L C O M E to R O O T *
> * *
> * Version 4.04/02b 3 June 2005 *
> * *
> * You are welcome to visit our Web site *
> * http://root.cern.ch *
> * *
>
> I find the gSystem->Exec and related functions like gSystem->CopyFile no
> longer work in compiled code. They still operate in interpreted macros,
> but in my compliled code (that copies image files to my public directory)
> command like gSystem->Exec("mv *.gif ~/public_html/.") no longer work.
> Neither do they complain or give any hint what's wrong. It's not "klog"!.
> The same routines work fine if I intrepret the code.
>
> Is this a bug or feature? Is there a fix other than just using
> intrepretation?
>
> -Art S.
>
>
>
> A.E. Snyder, Group EC \!c*p?/
> SLAC Mail Stop #95 ((. .))
> Box 4349 |
> Stanford, Ca, USA, 94309 '\|/`
> e-mail:snyder_at_slac.stanford.edu o
> phone:650-926-2701 _
> http://www.slac.stanford.edu/~snyder BaBar
> FAX:650-926-2657 Collaboration
>
>
>
> On Wed, 31 Aug 2005, Rene Brun wrote:
>
> > Art,
> >
> > Do something like
> >
> > TFile *f = new TFile("myntuple.root","recreate");
> > TNtuple *t = new TNtuple(...
> > //loop on t->Fill
> >
> > t->Write();
> >
> > //that's all
> >
> > Rene Brun
> >
> > On Tue, 30 Aug 2005,
> > Arthur E. Snyder wrote:
> >
> > >
> > >
> > > I'd like to write out a read back a simple TNtuple. This seems to be
> kind
> > > of compicated with "keys" and such. Isn't there a simple way to do it?
> > > Like t->Write("filename")?
> > >
> > > -Art S.
> > >
> > > A.E. Snyder, Group EC \!c*p?/
> > > SLAC Mail Stop #95 ((. .))
> > > Box 4349 |
> > > Stanford, Ca, USA, 94309 '\|/`
> > > e-mail:snyder_at_slac.stanford.edu o
> > > phone:650-926-2701 _
> > > http://www.slac.stanford.edu/~snyder BaBar
> > > FAX:650-926-2657 Collaboration
> > >
> > >
> > >
> > > On Thu, 25 Aug 2005, Philippe Canal wrote:
> > >
> > >>> the root reads it very slowly(Is it normal?).
> > >>
> > >> In general this should not be the case (i.e. reading an entry from the
> > >> original files
> > >> or from the merge files should be about the same).
> > >>
> > >>> I want to split again this file to smaller files, Is it possible?
> > >>
> > >> You can simply clone the large tree but setting the TTree maximum
> > >> size to a low number (see TTree::SetMaxTreeSize)
> > >> (see $ROOTSYS/tutorials/copytree*.C)
> > >>
> > >> Cheers,
> > >> Philippe.
> > >>
> > >> -----Original Message-----
> > >> From: owner-roottalk_at_pcroot.cern.ch
> [mailto:owner-roottalk_at_pcroot.cern.ch]
> > >> On Behalf Of Saeid Paktinat Mehdiabadi
> > >> Sent: Thursday, August 25, 2005 8:58 AM
> > >> To: roottalk (Mailing list discussing all aspects of the ROOT system)
> > >> Subject: [ROOT] Split a root file!
> > >>
> > >> Hello ROOT developers,
> > >>
> > >> I had something like 100 root files with same structure,
> > >>
> > >> I used, TChain::Merge(), to merge them and make a single file, this
> file is
> > >> very big and the root reads it very slowly(Is it normal?).
> > >>
> > >> I want to split again this file to smaller files, Is it possible?
> > >>
> > >> What's the solution?
> > >>
> > >> Thank you,
> > >>
> > >> Saeid
> > >>
> > >>
> > >
> >
>
>
Received on Sat Sep 03 2005 - 03:05:12 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET