{"action":"created","issue":{"url":"https://api.github.com/repos/ib-controller/ib-controller/issues/137","repository_url":"https://api.github.com/repos/ib-controller/ib-controller","labels_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/137/comments","events_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/137/events","html_url":"https://github.com/ib-controller/ib-controller/issues/137","id":211962320,"number":137,"title":"cannnot start from java","user":{"login":"arbitrage-technology","id":16827344,"avatar_url":"https://avatars3.githubusercontent.com/u/16827344?v=3","gravatar_id":"","url":"https://api.github.com/users/arbitrage-technology","html_url":"https://github.com/arbitrage-technology","followers_url":"https://api.github.com/users/arbitrage-technology/followers","following_url":"https://api.github.com/users/arbitrage-technology/following{/other_user}","gists_url":"https://api.github.com/users/arbitrage-technology/gists{/gist_id}","starred_url":"https://api.github.com/users/arbitrage-technology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbitrage-technology/subscriptions","organizations_url":"https://api.github.com/users/arbitrage-technology/orgs","repos_url":"https://api.github.com/users/arbitrage-technology/repos","events_url":"https://api.github.com/users/arbitrage-technology/events{/privacy}","received_events_url":"https://api.github.com/users/arbitrage-technology/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-05T15:57:18Z","updated_at":"2017-03-05T21:16:35Z","closed_at":"2017-03-05T21:16:35Z","body":"using manually via the shell,  IBControllerGatewayStart.sh works as expected \r\nbut the code:\r\n\r\nFile path = new File(\"/home/user/IBController/IBControllerGatewayStart.sh\")\r\npath.setExecutable(true);\r\n\r\nProcessBuilder pb = new ProcessBuilder(\"/bin/sh\", path.getAbsolutePath());\r\nProcess p = pb.start();\r\np.waitFor()\r\n\r\ndoesnt work EXCEPT if i put breakpoint after start().\r\n\r\nit runs ok in debug mode but not as a stand alone.\r\n\r\nany idea to launch scripts from java program ?\r\n"},"comment":{"url":"https://api.github.com/repos/ib-controller/ib-controller/issues/comments/284263410","html_url":"https://github.com/ib-controller/ib-controller/issues/137#issuecomment-284263410","issue_url":"https://api.github.com/repos/ib-controller/ib-controller/issues/137","id":284263410,"user":{"login":"arbitrage-technology","id":16827344,"avatar_url":"https://avatars3.githubusercontent.com/u/16827344?v=3","gravatar_id":"","url":"https://api.github.com/users/arbitrage-technology","html_url":"https://github.com/arbitrage-technology","followers_url":"https://api.github.com/users/arbitrage-technology/followers","following_url":"https://api.github.com/users/arbitrage-technology/following{/other_user}","gists_url":"https://api.github.com/users/arbitrage-technology/gists{/gist_id}","starred_url":"https://api.github.com/users/arbitrage-technology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arbitrage-technology/subscriptions","organizations_url":"https://api.github.com/users/arbitrage-technology/orgs","repos_url":"https://api.github.com/users/arbitrage-technology/repos","events_url":"https://api.github.com/users/arbitrage-technology/events{/privacy}","received_events_url":"https://api.github.com/users/arbitrage-technology/received_events","type":"User","site_admin":false},"created_at":"2017-03-05T21:16:35Z","updated_at":"2017-03-05T21:16:35Z","body":"thanks to  shevkoplyas.\r\n\r\ntaking out & character in \"${IBC_PATH}/Scripts/DisplayBannerAndLaunch.sh\" & \r\nmakes IBControllerGatewayStart.sh \"launchable\" from java program trough ProcessBuilder() class.\r\n\r\nthx for your fast reply and your help."}}
{"actor":{"display_login":"arbitrage-technology"}}