本篇文章介绍python 判断linux进程,并杀死进程的实现方法 如下所示: @author: Jacobpcimport osimport sysimport subprocess def get_process_id(name): child = subprocess.Popen([pgrep,-f,name],stdout=subprocess.PIPE,shell=False) response = child.c
本篇文章介绍python 判断linux进程,并杀死进程的实现方法 如下所示:
|
2019-06-18
2019-07-04
2021-05-23
2021-05-27
2021-05-27