{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/help/issues/584","repository_url":"https://api.github.com/repos/nodejs/help","labels_url":"https://api.github.com/repos/nodejs/help/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/help/issues/584/comments","events_url":"https://api.github.com/repos/nodejs/help/issues/584/events","html_url":"https://github.com/nodejs/help/issues/584","id":222081732,"number":584,"title":"Problem in receiving output using stdout through application ","user":{"login":"ayush191992","id":25947346,"avatar_url":"https://avatars2.githubusercontent.com/u/25947346?v=3","gravatar_id":"","url":"https://api.github.com/users/ayush191992","html_url":"https://github.com/ayush191992","followers_url":"https://api.github.com/users/ayush191992/followers","following_url":"https://api.github.com/users/ayush191992/following{/other_user}","gists_url":"https://api.github.com/users/ayush191992/gists{/gist_id}","starred_url":"https://api.github.com/users/ayush191992/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayush191992/subscriptions","organizations_url":"https://api.github.com/users/ayush191992/orgs","repos_url":"https://api.github.com/users/ayush191992/repos","events_url":"https://api.github.com/users/ayush191992/events{/privacy}","received_events_url":"https://api.github.com/users/ayush191992/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-17T07:20:48Z","updated_at":"2017-04-17T07:33:06Z","closed_at":null,"body":"<!-- Please remove this line and fill the template -->\r\n\r\n* **Node.js Version**:\r\n* **OS**:\r\n* **Scope (install, code, runtime, meta, other?)**:\r\n* **Module (and version) (if relevant)**:\r\n\r\n\r\n\r\n<!-- Please write your issue here and remove this line and the example code part. If relevant, provide some code following the example: -->\r\n\r\nI am trying to send input to child process through node.js application. I have spawn the child process using spawn method of node.js. The child process application is below behavior if we give any string using stdin along with $QUIT\\n$ it will print some message in stdout and if we give some string along with keyword $END$ (child process will exit then ) as full application is in while loop and we need to give $END\\n$ as terminating character to exit from application. I am trying to capture stdout after i give $QUIT$ to exit from inner while loop and second time I am trying to capture stdout after i give $END$ to exit from outer while loop. Child application is spawned during initialization of nodejs application,\r\n\r\nBut I am not able to capture the stdout after I am giving $QUIT\\n$ to capture stdout from inner while loop.I am able to capture stdout from the application after my child process exit when I gave $END$ to exit the outer while loop.\r\n\r\nCan you please help in this regard how we can capture the stdout when Outer loop is still in waiting condition to exit and inner loop is exited. How we can capture stdout from application which is still in running process.\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/help/issues/comments/294424508","html_url":"https://github.com/nodejs/help/issues/584#issuecomment-294424508","issue_url":"https://api.github.com/repos/nodejs/help/issues/584","id":294424508,"user":{"login":"ORESoftware","id":11139560,"avatar_url":"https://avatars2.githubusercontent.com/u/11139560?v=3","gravatar_id":"","url":"https://api.github.com/users/ORESoftware","html_url":"https://github.com/ORESoftware","followers_url":"https://api.github.com/users/ORESoftware/followers","following_url":"https://api.github.com/users/ORESoftware/following{/other_user}","gists_url":"https://api.github.com/users/ORESoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/ORESoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ORESoftware/subscriptions","organizations_url":"https://api.github.com/users/ORESoftware/orgs","repos_url":"https://api.github.com/users/ORESoftware/repos","events_url":"https://api.github.com/users/ORESoftware/events{/privacy}","received_events_url":"https://api.github.com/users/ORESoftware/received_events","type":"User","site_admin":false},"created_at":"2017-04-17T07:33:06Z","updated_at":"2017-04-17T07:33:06Z","body":"Probably need to show us your code."}}
{"actor":{"display_login":"ORESoftware"}}