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:
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