[ROOT] Accesing script name from inside the script

From: Stilianos Kesisoglou (kesisogl@fnal.gov)
Date: Mon Jul 14 2003 - 14:58:42 MEST


Hi,

    Is it possible to access the name of a script that is executed
on ROOT from inside the script?

    For example I have a ROOT session started and I am executing
the script named "myScript.C":

    root[].x myScript.C

    What I want is from the inside of the script "myScript.C" to access it's name.
    Is there any global parameter where this is stored (obviously CINT must know
the name of the script being executed), or maybe this information is passed to the script
itself (like in the UNIX shell case)?

    Thanks!

Stelios.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET