blob: 6ee78b29461041e4443f99e6b6df7a094dbf568a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
Shell::GetEnv provides facility for obtaining changes made to environment
variables as the result of running shell scripts. It does this by causing
a shell to invoke a series of user provided shell commands (some of which
might source scripts) and having the shell process store its environment
(using a short Perl script) into a temporary file, which is parsed by the
Shell::Getenv.
Communications with the shell subprocess may be done via standard IPC (via
a pipe), or may be done via the Perl Expect module (necessary if proper
execution of the shell script requires the shell to be attached to a "real"
terminal).
|