linux 杀进程

system("ps |grep boa|grep -v grep|cut -c 1-6|xargs kill -9"); grep -v    表示 Select non-matching lines, 由于grep的时候把它自己的进程也抓出来了。 cut -c 1-6 表示 只保留第一到第六个字符,这里把进程号cut来了。 xargs - build and execute command l
相关文章
相关标签/搜索