Dear ROOTers, I am implementing a launcher button on a ROOT GUI program to invoke another executable. But I like to test whether the process has been running already. A quick and dirty solution I am using is (in pseudo-code language) -- gSystem->Exec("ps -u user | grep program >.tmp"); -- Parse the tmp file and find if program exists Is there a better way in TSystem (or whatever ROOT class) that might handle the system calls in a more elegant way? Thanks in advance! Jianglai
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET