进程连接

进程连接[程序,"流动"]

返回给定流的流对象。

细节

  • 可能的流值为:
  • “标准输入”可以写入的流,进程将从中读取
    “标准输出”可以从中读取的流,进程将写入的
    “标准错误”可以从中读取的错误流,进程将写入的

示例

基本示例  (2)

启动系统shell进程:

编写shell命令:

读取shell命令输出:

编写无效的shell命令:

使用处理连接要从标准错误流中读取:

启动系统shell进程:

使用获取标准输入流进程连接:

使用获取标准输出流进程连接:

在shell中写入两个命令。在大多数情况下,流程及其流可以互换使用:

读取两个命令输出:

Wolfram Research(2014),ProcessConnection,Wolfram语言函数,https://reference.wolfram.com/language/ref/ProcessConnection.html。

文本

Wolfram Research(2014),ProcessConnection,Wolfram语言函数,https://reference.wolfram.com/language/ref/ProcessConnection.html。

CMS公司

沃尔夫拉姆语言。2014年,“ProcessConnection”,Wolfram语言与系统文档中心。Wolfram研究。https://reference.wolfram.com/language/ref/ProcessConnection.html。

亚太地区

沃尔夫拉姆语言。(2014). ProcessConnection。Wolfram语言与系统文档中心。检索自https://reference.wolfram.com/language/ref/ProcessConnection.html

BibTeX公司

@misc{reference.wolfram_2024_processconnection,author=“wolfram Research”,title=“{processconnection}”,year=“2014”,howpublished=“\url{https://reference.jolfram.com/language/ref/processconnection.html}”]}

BibLaTeX公司

@online{reference.wolfram_2024_processconnection,organization={wolfram Research},title={processconnection},year={2014},url={https://reference.jolfram.com/language/ref/processconnection.html},note=[访问时间:2024年5月21日]}