ProcessEnvironment

ProcessEnvironment

is an option specifying the initial settings of environment variables to use when executing a process in functions like StartProcess and RunProcess.

Details

  • With the default setting ProcessEnvironment->Inherited, the subprocess will inherit its initial directory from the environment settings of the parent process (the Wolfram Engine) that calls it.
  • The values of environment variables are typically given in an association.

Examples

Basic Examples  (1)

On Unix systems like Mac OS and Linux, these inputs run the echo process from a system shell to report the value of the environment variable set by the value of the ProcessEnvironment option:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

See Also

Environment  SetEnvironment  ProcessDirectory

Introduced in 2014
(10.0)