ã1è¡ã³ãã³ããç¹å®ã®ããã»ã¹ãkillããã³ãã³ã
å ¨ã¦ã®httpdãkillããå ´åã
xargsã使ãå ´å
or
ãã®ã¾ã¾killã®å¼æ°ã¨ããå ´å
pgrepãå©ç¨ã§ããå ´åã¯
ps -A | grep [h]ttpd | awk '{print $1}' => pgrep -x [h]ttpdã§
# kill -9 `pgrep -x [h]ttpd`
pkillãå©ç¨ã§ããå ´åã¯
# pkill -9 -x [h]ttpd
ã§ããã
ãããªã®ãã»ã»
# killall -9 httpd
ããã¯ãããwww
for pid in `pgrep -x [h]ttpd`;do kill -9 $pid; done
ãããããããªã³ãã³ããã£ãããï¼æ±