Page 1 of 1

@programname?

Posted: Sun Aug 26, 2018 6:11 am
by tvonbrasch
Hi

How can I get the name of the program being executed? I know that @runpath gives the path of the program being executed, but I have not yet found the command that provides a string with the name of the program being executed.
Thomas

Re: @programname?

Posted: Tue Sep 04, 2018 10:04 am
by EViews Matt
Hello,

The undocumented command @runname returns the file name of the "top-level" program running (ignoring the effects of include or exec as documented for @runpath).