{"id":5300,"date":"2014-03-30T20:33:03","date_gmt":"2014-03-30T20:33:03","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/java-how-to-open-a-program-using-the-command-line-and-interact-collection-of-common-programming-errors\/"},"modified":"2014-03-30T20:33:03","modified_gmt":"2014-03-30T20:33:03","slug":"java-how-to-open-a-program-using-the-command-line-and-interact-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/java-how-to-open-a-program-using-the-command-line-and-interact-collection-of-common-programming-errors\/","title":{"rendered":"Java: How to open a program using the command line and interact-Collection of common programming errors"},"content":{"rendered":"<p>I searched a lot the last hours to open program.exe and interact with it like cmd. The solutions I found did not work or just worked for opening cmd and running commands like &#8216;dir&#8217;.<\/p>\n<p>I want to open a program (lets say program.exe), entering a command, parsing the output and then entering the next command. The window of the command line does not have to be open\/visible but I need to get the output and enter further commands. How can I do this with Java?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I searched a lot the last hours to open program.exe and interact with it like cmd. The solutions I found did not work or just worked for opening cmd and running commands like &#8216;dir&#8217;. I want to open a program (lets say program.exe), entering a command, parsing the output and then entering the next command. [&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-5300","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5300","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=5300"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5300\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}