Re: [ROOT] executing commando on operatingsystem

From: Valeri Fine (fine@bnl.gov)
Date: Thu Mar 14 2002 - 18:09:43 MET


----- Original Message ----- 
From: "Alexander Dietz" <Alexander.Dietz@mpi-hd.mpg.de>
To: <roottalk@pcroot.cern.ch>
Sent: Thursday, March 14, 2002 4:51 AM
Subject: [ROOT] executing commando on operatingsystem


> Hello,
> 
> is there an other way to execute commandos on the operatingsystem (here:
> Linux, bash) than 'system'?
> 
> There is a class 'TSystem' in ROOT, but does it have anything to do with
> the command 'system'?

  Try 
          gSystem->Exec("ls");

See:  http://root.cern.ch/root/htmldoc/TSystem.html#TSystem:Exec

> 
> Cheers,
> 
> A. Dietz
> 
-----
Dr.Valeri Fine
STAR/US Atlas                                    E-mail: fine@bnl.gov
Brookhaven National Lab                Phone: +1 631 344 7806
Upton, NY 11973-5000                       FAX:     +1 631 344 4206
USA



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:45 MET