Monday, November 1, 2010
9:57 PM

Grepping for a list of processes and then e.g. killing them

If you e.g. want to kill a list of processes you can all grep but are too lazy to type all the pids. Or e.g. as part of a service script on a server:
ps -ef | grep something | awk '{print }' | xargs -i kill {}

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.