KillProcess[proc]
kills the external process represented by the ProcessObject proc.
KillProcess
KillProcess[proc]
kills the external process represented by the ProcessObject proc.
Details
- On Unix-like systems, KillProcess[proc,n] sends signal n to the process.
Examples
Basic Examples (2)
Start the system shell process:
process = StartProcess[$SystemShell]KillProcess[process];
Pause[0.1];Check that the process has actually finished:
ProcessStatus[process]Start five system shell processes:
StartProcess[$SystemShell]& /@ Range[5]Show the list of processes that were started using StartProcess:
Processes[]Kill all processes that were started using StartProcess:
KillProcess /@ Processes[];Check that all processes have actually finished:
Processes[]Related Guides
History
Text
Wolfram Research (2014), KillProcess, Wolfram Language function, https://reference.wolfram.com/language/ref/KillProcess.html.
CMS
Wolfram Language. 2014. "KillProcess." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KillProcess.html.
APA
Wolfram Language. (2014). KillProcess. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KillProcess.html
BibTeX
@misc{reference.wolfram_2026_killprocess, author="Wolfram Research", title="{KillProcess}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/KillProcess.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_killprocess, organization={Wolfram Research}, title={KillProcess}, year={2014}, url={https://reference.wolfram.com/language/ref/KillProcess.html}, note=[Accessed: 13-June-2026]}