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:

Introduced in 2014
 (10.0)