shell根据程序名获取进程号

shell根据程序名获取进程号:

  ps -A | grep "cmdname" | awk '{print $1}'

posted on 2019-06-27 13:40  Alvin2012  阅读(812)  评论(0编辑  收藏  举报

导航