How do I find the name of the script which called my current script, in Perl?What name? Files may have names, but files are just files, they don't do anything. They certainly don't call scripts.
Now, a process may "call" another process (I presume with "call" you mean a regular fork/exec combo, and not some RPC or doors call, a knock on the window by a signal), but processes, they are like crossing deserts on horses - they have no names. Processes have numbers. And processes have an additional variable, which contains the number of their parent process. Which may be the process that forked/execed the current process, but it may not, as said process may have ceased to exist. In which case, the parent process is the init() process. (Well, on Unixy systems; I've no clue what happens on a Windows system)
In reply to Re: Find name of calling script?
by JavaFan
in thread Find name of calling script?
by tel2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |