致力于Ubuntu中文推广http://forum.ubuntu.com.cn/
http://forum.ubuntu.com.cn/viewtopic.php?t=42292
代码: 全选
if [ `ps -A |grep ${1} | wc -l` = "0" ]; then echo "${1} 进程不存在" else echo "${1} 进程存在" fi