ProcessStatus

ProcessStatus[proc]

给出由 ProcessObject proc 表示的外部进程的当前状态.

ProcessStatus[proc,"status"]

返回 True,如果进程具有给定的状态;否则,返回 False.

更多信息

  • 可能状态值是 "Running""Finished".

范例

基本范例  (2)

启动系统 shell 进程:

获取给定进程的当前状态:

停止 shell 进程:

检查进程是否已经完成:

启动系统 shell 进程:

获取一个程序是否运行的布尔结果:

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

文本

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

CMS

Wolfram 语言. 2014. "ProcessStatus." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ProcessStatus.html.

APA

Wolfram 语言. (2014). ProcessStatus. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ProcessStatus.html 年

BibTeX

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

BibLaTeX

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