Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


This 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?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: