I have called number of scripts within a script and I want to know the parent script name of the running script.
“C” script called from “B” and “B” called from “A”
if I am in C I want to check the name of the immediate parent (i.e. B in this case) or the complete hierarchy of the calling script (i.e. C>B>A).
How can I do this?