如何获取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}'
ps -ef|grep %s|grep
"$prog_name"|awk '{print $2}'
相关文章推荐
- c++里的system()函数调用系统命令如何获取打印信息
- 如何获取system函数执行的结果------用popen搞起(很有用)
- 调用system函数时,如何隐藏其dos窗口
- 请问如何可以获取代码中函数与函数的调用关系.
- 你知道如何从字符串获取函数地址吗?
- 如何从函数中获取动态内存
- 如何从函数中获取动态内存
- 调用system函数时,如何隐藏其dos窗口
- 如何获取指定内存所在的模块、当前模块、当前函数的返回模块
- java中获取操作系统参数的函数 System.getProperty(String key)
- 如何获取DLL组件中函数及参数?
- VC++获取当前系统时间日期 GetSystemTime()函数的用法
- 如何调用MFC中的函数打开一个系统资源面板,获取文件
- [note]贴个能获取Csrss.exe PID的函数
- ORACLE TO_CHAR()函数如何获取自然周
- SAP 如何获取长文本 (ABAP),并写通用函数
- 如何获取指定内存所在的模块、当前模块、当前函数的返回模块
- 关闭窗口函数及如何获取窗口句柄(VC)
- 如何获取访问web服务的客户端IP?客户端调用web服务时,对于有参函数能输入参数?
- .NET基础扩展系列-如何获取事件的响应函数列表