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:

In[1]:=
Click for copyable input
Out[1]=

Get the current status for the given process:

In[2]:=
Click for copyable input
Out[2]=

Kill the shell process:

In[3]:=
Click for copyable input

Check that the process has actually finished:

In[4]:=
Click for copyable input
Out[4]=

Start the system shell process:

In[1]:=
Click for copyable input
Out[1]=

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

In[2]:=
Click for copyable input
Out[2]=

See Also

ProcessInformation  KillProcess  ProcessConnection

Introduced in 2014
(10.0)