3 ms·
Here's a single command which should do the same. It supports cp and dd, but anything else that supports SIGINFO could be added in. ps -A | grep -P 'cp|dd'
by adrusi 12y ago
Here's a single command which should do the same. It supports cp and dd, but anything else that supports SIGINFO could be added in.
ps -A | grep -P 'cp|dd' | sed -r 's/^\s*([0-9]+).+$/\1/' | xargs kill -s SIGINFO
- ars 12y agoThis assumes the command supports SIGINFO, but that's a BSD thing. Linux commands don't support that, so this is not a replacement. And did you really just reinvent pkill?