({{, (RefLink[ProcessStatus, paclet:ref/ProcessStatus])[proc] 
gives the current status of the external process represented by the (RefLink[ProcessObject, paclet:ref/ProcessObject]) proc.}, {, (RefLink[ProcessStatus, paclet:ref/ProcessStatus])[proc,"status"]
returns (RefLink[True, paclet:ref/True]) if the process has the status given and returns (RefLink[False, paclet:ref/False]) otherwise.}})

OpenersNotesSection(Spacer1)Details

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

OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Start the system shell process:

process=StartProcess[$SystemShell]

Get the current status for the given process:

ProcessStatus[process]

Kill the shell process:

KillProcess[process];

Check that the process has actually finished:

ProcessStatus[process]

Start the system shell process:

process=StartProcess[$SystemShell]

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

ProcessStatus[process,"Running"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ProcessInformation, paclet:ref/ProcessInformation])  ▪  (RefLink[KillProcess, paclet:ref/KillProcess])  ▪  (RefLink[ProcessConnection, paclet:ref/ProcessConnection])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Direct Control of External Processes, paclet:guide/DirectControlOfExternalProcesses])}})}})