{"action":"created","issue":{"url":"https://api.github.com/repos/bitsofinfo/stateful-process-command-proxy/issues/10","repository_url":"https://api.github.com/repos/bitsofinfo/stateful-process-command-proxy","labels_url":"https://api.github.com/repos/bitsofinfo/stateful-process-command-proxy/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/bitsofinfo/stateful-process-command-proxy/issues/10/comments","events_url":"https://api.github.com/repos/bitsofinfo/stateful-process-command-proxy/issues/10/events","html_url":"https://github.com/bitsofinfo/stateful-process-command-proxy/issues/10","id":170162107,"number":10,"title":"Process not switching the current working directory mentioned at \"processCwd\"","user":{"login":"manju4ever","id":9355984,"avatar_url":"https://avatars.githubusercontent.com/u/9355984?v=3","gravatar_id":"","url":"https://api.github.com/users/manju4ever","html_url":"https://github.com/manju4ever","followers_url":"https://api.github.com/users/manju4ever/followers","following_url":"https://api.github.com/users/manju4ever/following{/other_user}","gists_url":"https://api.github.com/users/manju4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/manju4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manju4ever/subscriptions","organizations_url":"https://api.github.com/users/manju4ever/orgs","repos_url":"https://api.github.com/users/manju4ever/repos","events_url":"https://api.github.com/users/manju4ever/events{/privacy}","received_events_url":"https://api.github.com/users/manju4ever/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitsofinfo/stateful-process-command-proxy/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-09T13:12:13Z","updated_at":"2016-08-09T15:56:29Z","closed_at":"2016-08-09T15:56:29Z","body":"Here is my code\r\n```\r\nvar Commander = require(\"stateful-process-command-proxy\");\r\n\r\nfunction _getNewExecutor(cwd) {\r\n         \tvar executor = new Commander({\r\n\t\t\t\tmax:1,\r\n\t\t\t\tmin:1,\r\n\t\t\t\tprocessCommand:\"cmd.exe\",\r\n\t\t\t\tlogFunction: function(severity, origin, msg) {\r\n\t\t\t\t\t//console.log(severity.toUpperCase()+ \" \"+ origin +\" \"+ msg);\r\n\t\t\t\t},\r\n\t\t\t\t idleTimeoutMillis: 1000000,\t\r\n\t\t\t\t preDestroyCommands:[\"echo im going for a toss\"],\r\n\t\t\t\t processCwd: \"../\"\r\n\t\t\t});\r\n\t\t\treturn executor;\r\n}\r\n```\r\n\r\nIt does not switch to previous directory"},"comment":{"url":"https://api.github.com/repos/bitsofinfo/stateful-process-command-proxy/issues/comments/238599461","html_url":"https://github.com/bitsofinfo/stateful-process-command-proxy/issues/10#issuecomment-238599461","issue_url":"https://api.github.com/repos/bitsofinfo/stateful-process-command-proxy/issues/10","id":238599461,"user":{"login":"manju4ever","id":9355984,"avatar_url":"https://avatars.githubusercontent.com/u/9355984?v=3","gravatar_id":"","url":"https://api.github.com/users/manju4ever","html_url":"https://github.com/manju4ever","followers_url":"https://api.github.com/users/manju4ever/followers","following_url":"https://api.github.com/users/manju4ever/following{/other_user}","gists_url":"https://api.github.com/users/manju4ever/gists{/gist_id}","starred_url":"https://api.github.com/users/manju4ever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manju4ever/subscriptions","organizations_url":"https://api.github.com/users/manju4ever/orgs","repos_url":"https://api.github.com/users/manju4ever/repos","events_url":"https://api.github.com/users/manju4ever/events{/privacy}","received_events_url":"https://api.github.com/users/manju4ever/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T15:56:29Z","updated_at":"2016-08-09T15:56:29Z","body":"Thank you so much @bitsofinfo , so i tried the **initCommands** way, it worked like a charm. But i did try to spawn a process manually, it works fine like the as described in the official documentation. I also read your original source , seems pretty fine to me. \r\n\r\nFor Reference: \r\nNode version: v5.5.0,\r\nMS  Windows: Win 7 Enterprise x64\r\n\r\nClosing this issue as there is a workaround available."}}
{"actor":{"display_login":"manju4ever"}}