#183461 - 21/09/200416:49Re: Oh no! A serious flaw!
[Re: mlord]
mcomb pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Quote: I'm not sure that there's a ps command normally available.
There is a ps, but no awk, split, eval, etc to do the parsing. This seems to work...
Code:
kill `for file in /proc/*/cmdline; do grep -v self $file>/dev/null && grep player $file>/dev/null && echo ${file:6:2} ; done`
but I am sure one of you can come up with something cleaner. Anyway, you still have the problem that the player automatically relaunches from init anytime you kill it.