Shell:判断一个进程是否存在

2014-11-24 09:56:46 · 作者: · 浏览: 1

例:


查询是否存在hello进程


#./test.sh hello


如果存在hello进程,会输出PID


不存在会输出 no this process