特牛生活网

shell 获取 进程号_shell获取进程的进程号-CSDN博客

网友收藏
文章浏览阅读5.8k次,点赞4次,收藏12次。先上脚本======================================================proc=xxx // 应用程序名称pid=`ps | grep $proc| grep -v grep | sed 's/^\s*//' | sed 's/[[:space:]].*//'`echo $pid==========================..._shell获取进程的进程号