in reply to Re^2: Run system command in same context of the script itself
in thread Run system command in same context of the script itself
If that's not enough, maybe just better show us an SSCCE of what you want, instead of leaving us the burden of interpretation?
> All the commands run in the parent process.
Does that mean Perl is just the sub-process and you want to change the ENV of the non-Perl parent?
I'm afraid that's not possible, w/o adjusting the parent.
Already on the OS level this is forbidden for security reasons. The parent-process has full control and must actively change its own ENV. It is protected from changes in a sub-process.
Simplest solution: -> eval-ing a string returned by the Perl sub-process to set ENV
But now you are also confronted with security implications, because you have to make sure this communication isn't eavesdropped.
and if all of this doesn't help, please have a look there -> "I know what I mean. Why don't you?"
Cheers Rolf
(addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
Wikisyntax for the Monastery
|
|---|