您的位置:首页 > 其它

如何获取system()函数的pid

2014-06-20 19:04 260 查看
ps -eo pid,args | grep -w "$prog_name" | grep -v 'grep' | grep -v 'ps -eo pid,args' | awk '{print $1}'

ps -ef|grep %s|grep

"$prog_name"|awk '{print $2}'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  system函数 pid