Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

indiscriminate process termination #7

Open
lochiiconnectivity opened this issue May 26, 2020 · 2 comments
Open

indiscriminate process termination #7

lochiiconnectivity opened this issue May 26, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@lochiiconnectivity
Copy link

lochiiconnectivity commented May 26, 2020

run(pipeline(`ps aux`, `grep -ie " vi"`, `awk '{print $2}'`, `xargs kill -9`))

Not great, you'll get false positives this way

$ perl -e '$0="vision"; sleep 10;' & ps aux | grep -ie " vi"
[1] 74174
user           74176   0.0  0.0  2455444   1392 s005  R+    8:30am   0:00.01 grep -ie  vi
user           74174   0.0  0.0  2456660   2848 s005  R     8:30am   0:00.01 vision

Probably better to do egrep " vi[m]*$" instead

@arkku
Copy link

arkku commented May 26, 2020

See also #13

@caseykneale
Copy link
Owner

We appreciate this brave suggestion to this project. We are working on a version 2.0 at present. Your noble deed may become the cornerstone of preventing millions from emotional harm.

@caseykneale caseykneale added the enhancement New feature or request label May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants