Showing posts with label kill. Show all posts
Showing posts with label kill. Show all posts

Monday, 14 May 2007

Frostwire won't shut down, exit or quit

No matter if I closed Frostwire in the menu or the window button (X), it would not shut down. It would stay in my title bar. It did not move to the process bar on the right (unlike Frostwire on Windows).

I tried to shut down the service using the terminal/konsole:
ps -e | grep frostwire
No luck. But if you do
ps -e
you notice something. Ah, that's right, Frostwire uses JRE and looks like "Java", so that must be it.
kill ProcessIdOfTheJavaThingy
Does not kill the process. Nothing happens. (Replace ProcessIdOfTheJavaThingy with the number beside the program you want to kill). For fun, I tried:
sudo kill ProcessIdOfTheJavaThingy
That doesn't work either. Well, I guess I'll actually Google it or something.

This is not a bug (though that may be a matter of opinion...); it's a feature. Frostwire will not shutdown if there are items still waiting to finish. To fix this lovely feature, go into the Frostwire menus:
Tools
Options
System Tray (on the left)
Select Shutdown Immediately
Well, that was easy.

*****

UPDATE: easily kill a process that has a window - use a weird combination of both graphical and command line to kill a window! In your terminal, type
xkill
and then the system will prompt you to click on the window you want to kill. Great method for those of you who don't want to remember ps options and pipes.

Or... kill a process by name (say... "amarok") using pkill.
pkill amarok
Great link here about that.

Sunday, 18 March 2007

How to Manually Force a Program to Close

Yes, programs in Linux can crash.

If you need to force a program to close, but are wondering what the heck Kubuntu folks use instead of Task Manager (CTRL-ALT-DEL), try using the terminal instead.

(I suspect there is a GUI like Task Manager kicking around somewhere that you can install, but that would require installing it or finding it. You already have a terminal).

What you need to do is find the Process ID of the program that is running, and then kill that process. First: open a Konsole window. In the window, type
ps -e | grep NameOfProgramYouWantToKill
or
ps aux | grep NameOfProgramYouWantToKill
Sometimes the name of the program not obvious or not what you expect it to be. In that case, you can just do
ps -e
or
ps aux
and scroll through the list to find it. Once you find it, you'll notice a number beside it, on the left. Type:
kill number
And hopefully you've shut the right program down. The program should disappear from the taskbar. As always, if you are consistently starting to experience problems with hanging programs, you should try rebooting the computer. If you still experience problems, Google for bugs or an update or patch for the software.