标签:blog http io color sp on 2014 log cti
用ps -def | grep查找进程很方便,最后一行总是会grep自己。
$ ps -def | grep dragonfly-framework dean 5273 5272 0 15:23 pts/5 00:00:00 newlisp ./dragonfly-framework/newlisp-redirection.lsp -http -d 8080 -w . dean 5491 5229 0 15:37 pts/16 00:00:00 grep --color=auto dragonfly-framework
$ ps -def| grep dragonfly-framework | grep -v grep dean 5273 5272 0 15:23 pts/5 00:00:00 newlisp ./dragonfly-framework/newlisp-redirection.lsp -http -d 8080 -w .
ps -def | grep dragonfly-framework | grep -v grep | awk ‘{print $2}‘ 5273
标签:blog http io color sp on 2014 log cti
原文地址:http://blog.csdn.net/csfreebird/article/details/41210493