Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jcmacos

macrumors newbie
Original poster
Nov 19, 2010
3
0
How do you use killall command to kill a process with spaces?

I tried killall "Parallel desktop" process and it does not recognize that process name.

Killall Safari works fine. Thanks.
 
How do you use killall command to kill a process with spaces?

I tried killall "Parallel desktop" process and it does not recognize that process name.

Killall Safari works fine. Thanks.

Code:
killall Parallel\ desktop

Just kill it using Activity Monitor.

That won't kill all processes with that name. killall will kill every process with a particular name.
 
True, you can do that, but it's easier (for some) to just kill them with one command from Terminal and be done with it.

You can group them by selecting the option, see attached photo. Then just kill the parent.
 

Attachments

  • Screen shot 2010-11-20 at 2.00.32 AM.png
    Screen shot 2010-11-20 at 2.00.32 AM.png
    20.5 KB · Views: 739
You can group them by selecting the option, see attached photo. Then just kill the parent.

You're missing the point. What if you have 50 processes under different parents? That's where killall comes into play. Of course, they all roll up to one parent, init, but you don't want to kill that. It's much safer to reboot.
 
You're missing the point. What if you have 50 processes under different parents? That's where killall comes into play. Of course, they all roll up to one parent, init, but you don't want to kill that. It's much safer to reboot.

Well yeah, if you know what you're doing, killall certainly does what you want. The OP isn't versed in terminal, we're advising that Activity Monitor is a safer, user friendly version. And in this case, Parallels is safe to kill as a parent.

To provide another solution to the OP's question: try putting single quotes around the name, and the program name is case-sensitive. (EDIT: ah I see you tried the quotes already, single/double quotes makes no difference, the case does though).

Code:
killall 'Parallels Desktop'
 
Last edited:
Killall Parallel\ desktop does not work.

No matching processes belonging to you were found.

I am trying to put this in applescript.

on run
do shell script "killall Parallels Desktop"
end run
 
Interesting, running

killall 'Network Utility'

works fine.... Must be that process "Parallels Desktop" that is having issue.


But i can kill by PID.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.