Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAlex Cevallos
16,551 Points"No processes found" When using kill *pid* in mac terminal
Hey everyone so I type in ps aux | grep "Safari"
Which I get the PID
but then I enter kill pid and it says "no matching processes found"
Upon further inspection I noticed the PID's increment by the time I type out the kill command.
I was wondering if anyone had a fix for this? Thanks!
3 Answers
Chris Shaw
26,676 PointsHi Alex,
Make sure you're killing the process id that's linked to the following executable path, if you're trying to kill something such as the grep "Safari"
command it won't work since that process gets removed automatically upon it running.
/Applications/Safari.app/Contents/MacOS/Safari
Alex Cevallos
16,551 PointsAhh! It works! Thank you! Also thanks Matthew Orndoff !
Alex Cevallos
16,551 PointsMatthew Orndoff Thanks for the help! Unfortunately I keep getting this: http://oi62.tinypic.com/rje8gh.jpg
filipepacheco
Full Stack JavaScript Techdegree Student 21,416 PointsHey Chris Upjohn, then how would I specifically find the process id, without having to go through the whole list. I'm making a test right now and trying to terminate Spotify. I type ps aux | grep "spotify" and I get the same error if I try to terminate. How else would I specifically find the process id?
Another question I have. Is it possible to terminate a program just by using its name, without having to use the pid?
Thanks
Matthew Orndoff
9,018 PointsMatthew Orndoff
9,018 PointsYou might try
kill -9 <pid>
In addition to killing the process, this is essentially telling the system to grab it and burn it with fire. It's worked for me in your situation before. Make sure you're targeting the right PID though.