Linux | 11月 14th, 2007
あるポートで動いているプロセスを調べるには lsof とか使いますが、それをsedで余分なもの取り除いて kill の引数にすればおk
kill -9 `/usr/sbin/lsof -Fp -i:5000|sed 's/p//'`

Linux | 11月 14th, 2007
あるポートで動いているプロセスを調べるには lsof とか使いますが、それをsedで余分なもの取り除いて kill の引数にすればおk
kill -9 `/usr/sbin/lsof -Fp -i:5000|sed 's/p//'`


There are no comments yet, add one below.
else : ?>Comments are closed.
