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 environment from the 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:

Wolfram Research (2014), ProcessEnvironment, Wolfram Language function, https://reference.wolfram.com/language/ref/ProcessEnvironment.html.

Text

Wolfram Research (2014), ProcessEnvironment, Wolfram Language function, https://reference.wolfram.com/language/ref/ProcessEnvironment.html.

CMS

Wolfram Language. 2014. "ProcessEnvironment." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ProcessEnvironment.html.

APA

Wolfram Language. (2014). ProcessEnvironment. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ProcessEnvironment.html

BibTeX

@misc{reference.wolfram_2024_processenvironment, author="Wolfram Research", title="{ProcessEnvironment}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ProcessEnvironment.html}", note=[Accessed: 01-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_processenvironment, organization={Wolfram Research}, title={ProcessEnvironment}, year={2014}, url={https://reference.wolfram.com/language/ref/ProcessEnvironment.html}, note=[Accessed: 01-November-2024 ]}