用名字开始一个过程 [英] Start a process with a name
本文介绍了用名字开始一个过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基本上,我想动态地启动一些可能创建自己的子进程的进程,也想杀死我刚刚创建的某些进程组.我可以想到的一种方法是以一个名称启动进程(以一个组来区分),然后使用pkill杀死该名称.问题是如何使用名称启动进程,以便我可以使用pkill通过名称杀死它们?我也欢迎其他解决方案.
Basically I want to dynamically start some processes which may create their own children processes, also I want to kill a certain group of processes I just created whenever I want. One way I could think of is to start processes with a name(to distinguish as a group), then use pkill to kill them by the name. The question is how to start a process with a name so that I can use pkill to kill them by the name? I am open to other solutions as well.
推荐答案
There is very similar question on serverfault with some answers that might help you
这篇关于用名字开始一个过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文