{"id":5411,"date":"2014-03-30T21:40:01","date_gmt":"2014-03-30T21:40:01","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-send-sigint-signal-from-java-to-an-external-process-collection-of-common-programming-errors\/"},"modified":"2014-03-30T21:40:01","modified_gmt":"2014-03-30T21:40:01","slug":"how-to-send-sigint-signal-from-java-to-an-external-process-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/how-to-send-sigint-signal-from-java-to-an-external-process-collection-of-common-programming-errors\/","title":{"rendered":"How to send SIGINT signal from Java to an external process?-Collection of common programming errors"},"content":{"rendered":"<p>Can you send <code>kill -SIGINT<\/code> to the process (given that you know the process ID):<\/p>\n<pre><code>Runtime.getRuntime().exec(\"kill -SIGINT 12345\");\n<\/code><\/pre>\n<p>Of course, that would make for a platform-dependent solution&#8230; Potentially, you&#8217;ll be able to use this tool, although it is in &#8220;sandbox mode&#8221;. But it might give you an idea:<\/p>\n<p>http:\/\/commons.apache.org\/sandbox\/runtime\/<\/p>\n<p>See also this related question here:<\/p>\n<p>how can I kill a Linux process in java with SIGKILL Process.destroy() does SIGTERM<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Can you send kill -SIGINT to the process (given that you know the process ID): Runtime.getRuntime().exec(&#8220;kill -SIGINT 12345&#8243;); Of course, that would make for a platform-dependent solution&#8230; Potentially, you&#8217;ll be able to use this tool, although it is in &#8220;sandbox mode&#8221;. But it might give you an idea: http:\/\/commons.apache.org\/sandbox\/runtime\/ See also this related question here: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5411","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5411"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5411\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}