{"id":17307,"date":"2016-08-15T02:14:27","date_gmt":"2016-08-15T02:14:27","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=17307"},"modified":"2016-08-15T02:14:27","modified_gmt":"2016-08-15T02:14:27","slug":"comp-sci-command-prompt-testing-windows-7-how-to-kill-a-runaway-program","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/comp-sci-command-prompt-testing-windows-7-how-to-kill-a-runaway-program\/","title":{"rendered":"Comp Sci:  command prompt testing (Windows 7):  how to kill a runaway program"},"content":{"rendered":"<h1>The tutor brings up a couple of &#8220;emergency procedures&#8221; for stopping a program.<\/h1>\n<p>I don&#8217;t write many big programs; rather, I&#8217;ll often write a page or so of code (with lots of white space) to test a utility from a given language (lately it&#8217;s been Java).  Such a program is usually run from the command line.<\/p>\n<p>Some programs end up &#8220;hanging&#8221;; therefore, I like to know how to stop a program before I run it. If the program really gets out of hand (and assuming it&#8217;s running from the command line), there are two ways I know to stop it:<\/p>\n<ol>\n<li>The key combination Ctrl+C<\/li>\n<li>From the Task Manager<\/li>\n<\/ol>\n<p>The Task Manager is easily started by right-clicking the taskbar, then clicking Start Task Manager.  There are several tabs to choose from; the Applications one will show the Command Prompt.  If the program is running from there, just click it, then End Task at the bottom.<\/p>\n<p>The two methods work equally well on my system:)<\/p>\n<p>Source:<\/p>\n<p><a href=\" http:\/\/www.techrepublic.com\/pictures\/seven-ways-to-open-windows-task-manager\/4\/\">techrepublic.com<\/a><\/p>\n<p><a href=\"https:\/\/docs.oracle.com\/javase\/7\/docs\/api\/java\/lang\/Runtime.html\">docs.oracle.com<\/a><\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor brings up a couple of &#8220;emergency procedures&#8221; for stopping a program. I don&#8217;t write many big programs; rather, I&#8217;ll often write a page or so of code (with lots of white space) to test a utility from a &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/comp-sci-command-prompt-testing-windows-7-how-to-kill-a-runaway-program\/\"> <span class=\"screen-reader-text\">Comp Sci:  command prompt testing (Windows 7):  how to kill a runaway program<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,1801,904],"tags":[1815,1808,1812,1809,1813,1814,1811],"class_list":["post-17307","post","type-post","status-publish","format-standard","hentry","category-computer-science","category-java","category-windows","tag-ctrlc","tag-how-to-kill-a-process-in-windows-7","tag-how-to-open-the-windows-task-manager","tag-how-to-stop-a-program-running-from-the-command-line","tag-how-to-stop-a-runaway-program","tag-how-to-stop-an-application","tag-task-manager"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/17307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=17307"}],"version-history":[{"count":17,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/17307\/revisions"}],"predecessor-version":[{"id":17324,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/17307\/revisions\/17324"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=17307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=17307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=17307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}