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

Kill processes running in background #37

Open
blackchestnut opened this issue Jul 15, 2019 · 0 comments
Open

Kill processes running in background #37

blackchestnut opened this issue Jul 15, 2019 · 0 comments

Comments

@blackchestnut
Copy link
Owner

blackchestnut commented Jul 15, 2019

ps -ef | grep PROCESS_NAME | awk '{print $2}' | xargs sudo kill -9

Example for phantomjs:

ps -ef | grep phantomjs | awk '{print $2}' | xargs sudo kill -9

based on https://stackoverflow.com/questions/28465754/how-to-kill-phantomjs-processes-running-in-background-after-the-tests-are-comple

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant