ProcessConnection[proc,"stream"]
returns the stream object for a given stream.


ProcessConnection
ProcessConnection[proc,"stream"]
returns the stream object for a given stream.
Examples
Basic Examples (2)
Start the system shell process:
Read the shell command output:
Write an invalid shell command:
Use ProcessConnection to read from the standard error stream:
Start the system shell process:
Get the standard input stream using ProcessConnection:
Get the standard output stream using ProcessConnection:
Write two commands into the shell. A process and its streams can be used interchangeably in most cases:
See Also
Related Guides
History
Text
Wolfram Research (2014), ProcessConnection, Wolfram Language function, https://reference.wolfram.com/language/ref/ProcessConnection.html.
CMS
Wolfram Language. 2014. "ProcessConnection." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ProcessConnection.html.
APA
Wolfram Language. (2014). ProcessConnection. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ProcessConnection.html
BibTeX
@misc{reference.wolfram_2025_processconnection, author="Wolfram Research", title="{ProcessConnection}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/ProcessConnection.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_processconnection, organization={Wolfram Research}, title={ProcessConnection}, year={2014}, url={https://reference.wolfram.com/language/ref/ProcessConnection.html}, note=[Accessed: 11-August-2025]}