标签:shel logs upload 进程 输出 shell命令 div shell gre
直接看代码
ps aux|grep upload2FTP.sh|grep -v "grep"|awk ‘{print $2}‘
其中awk指定输出第二列内容(centos对应进程号)
Shell命令之ps获取指定进程的进程号
原文地址:http://www.cnblogs.com/zhscn/p/7373510.html