摘要: cmd="/home/scue/bin/ipclient $ipclient"exist=$(ps aux | grep -v 'grep' | grep "$cmd" | awk '{print $2}')kill_process(){ kill -9 $exist}if [[ "$1" != "" ]] ; then kill_processelse if [[ "$exist" != "" ]]; then kill_process fi 阅读全文
posted @ 2013-08-23 15:00 scue 阅读(444) 评论(0) 推荐(0) 编辑