Hi ,
is there a simple way to execute a simple root named script (script.C) outside root? or the only way to manage is create to a C++ main function, link the library script_C.so, etc etc?
Thanks a lot
Sara
Hi ,
is there a simple way to execute a simple root named script (script.C) outside root? or the only way to manage is create to a C++ main function, link the library script_C.so, etc etc?
Thanks a lot
Sara
[quote=“vanini”]Hi ,
is there a simple way to execute a simple root named script (script.C) outside root? or the only way to manage is create to a C++ main function, link the library script_C.so, etc etc?
Thanks a lot
Sara[/quote]
root.cern.ch/phpBB2/viewtopic.ph … ateprocess
Everything depends on requirements of your task.
Hi Sara,
you can create your own binary (I assume that’s what you meant with “outside ROT”?) with its own main(). Create a TApplication object in there, see e.g. test/stress.cxx. You can then use gSystem->ProcessLine(".x script.C") to execute the script from inside your main(). Let me know if Anar’s and my answers are not getting you anywhere.
Cheers, Axel.
Thanks, bot solutions are working. This was very helpful. Cheers
Sara