KillProcess

KillProcess[proc]
kills the external process represented by the ProcessObject proc.

DetailsDetails

  • On Unix-like systems, KillProcess[proc,n] sends signal n to the process.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Start the system shell process:

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

Kill the process:

In[2]:=
Click for copyable input

Check that the process has actually finished:

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

Start five system shell processes:

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

Show the list of processes that were started using StartProcess:

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

Kill all processes that were started using StartProcess:

In[3]:=
Click for copyable input

Check that all processes have actually finished:

In[4]:=
Click for copyable input
Out[4]=
Introduced in 2014
(10.0)