Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am building an app and it hangs on some thread . how can i kill that app ?

tried ctrl+c but it didn't work (the icon stays in the notification area)

thanks

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Try to kill it via the process list:

Process List

Or - if you want to be more nerdy - kill it via the console, using $>top

share|improve this answer
1  
i just didnt know it's name ... it was python :s –  Ronan Dejhero Oct 4 '12 at 13:31
1  
Maybe you can identify it using pstree. I suggest looking through the leaves. –  cauon Oct 4 '12 at 13:39

I suggest that you enter

Cntl-z

That will suspend the process and tell you its job number.

then:

kill -9 %1

if its job number is 1. After you press enter the first time it will mention that [1] is stopped. The next time you press enter it will tell you it is killed or terminated.

share|improve this answer
    
+1: this is exactly what I do. You can omit the -9 code though. –  Timo Oct 13 '12 at 20:40

If you know the name of your process, grep against ps to get the PID (process ID). Example: If I wanted to stop shotwell, I would do this (from a terminal session):

$ ps -ef | grep shotwell
xaap001   1779  1139  8 08:08 ?        00:00:01 shotwell
xaap001   1792  1703  0 08:08 pts/1    00:00:00 grep --color=auto shotwell

The first process listed is the one I want (in this example), and the first number listed is the PID. You can also see that the command I just ran is listed in there, too.

Now that I have my PID (1779), I can stop the process with this command:

$ kill -9 1779
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.