Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to terminate a program running from the Sublime Text 2 terminal once entering an infinite loop?

Tags:

Even If I close sublime the process continues to go, seeing as my laptop revs until slowing down to a crawl a few minutes later. I'm on mint linux, and can't seem to kill the process from terminal either.

like image 1000
Aerlusch Avatar asked Feb 08 '13 20:02

Aerlusch


People also ask

How do I stop Sublime Text from running an infinite loop?

Just type CTRL+C key on MacOS. Show activity on this post. Now, by pressing ctrl + n , the execution will immediately stop. Of course, you can change the combination to whatever you want (In place of ctrl + n ).

How do I close Sublime Text from terminal?

Just have to click in the console and simply press esc .

What is the Run command in Sublime Text?

To run the code, press Command B or go to Tools -> Build. As you can see, my Sublime Text is running Python 2.7.

How do I run a program from console in Sublime Text?

First press Ctrl + B to compile the program, then press Ctrl + Shift + B and choose run in cmd option, which will run the program in system CMD instead of the Sublime Text console.


1 Answers

Execute this command:

ps -A | grep sublime

result Example :

2547 ? 00:02:37 sublime_text

You will kill process with :

kill -9 2547
like image 54
Jirson Tavera Avatar answered Oct 01 '22 02:10

Jirson Tavera