ProcessStatus

ProcessStatus[proc]

gives the current status of the external process represented by the ProcessObject proc.

ProcessStatus[proc,"status"]

returns True if the process has the status given and returns False otherwise.

Details

  • Possible status values are "Running" and "Finished".

Examples

Basic Examples  (2)

Start the system shell process:

Get the current status for the given process:

Kill the shell process:

Check that the process has actually finished:

Start the system shell process:

Get a Boolean telling whether a program is running or not:

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

Text

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

CMS

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

APA

Wolfram Language. (2014). ProcessStatus. Wolfram Language & System Documentation Center. Retrieved from 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: 21-December-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: 21-December-2024 ]}