{"action":"created","issue":{"url":"https://api.github.com/repos/cmp-202/ssh2shell/issues/16","labels_url":"https://api.github.com/repos/cmp-202/ssh2shell/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/cmp-202/ssh2shell/issues/16/comments","events_url":"https://api.github.com/repos/cmp-202/ssh2shell/issues/16/events","html_url":"https://github.com/cmp-202/ssh2shell/issues/16","id":72425921,"number":16,"title":"onCommandProcessing get triggered too many times?","user":{"login":"rdewolff","id":130704,"avatar_url":"https://avatars.githubusercontent.com/u/130704?v=3","gravatar_id":"","url":"https://api.github.com/users/rdewolff","html_url":"https://github.com/rdewolff","followers_url":"https://api.github.com/users/rdewolff/followers","following_url":"https://api.github.com/users/rdewolff/following{/other_user}","gists_url":"https://api.github.com/users/rdewolff/gists{/gist_id}","starred_url":"https://api.github.com/users/rdewolff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdewolff/subscriptions","organizations_url":"https://api.github.com/users/rdewolff/orgs","repos_url":"https://api.github.com/users/rdewolff/repos","events_url":"https://api.github.com/users/rdewolff/events{/privacy}","received_events_url":"https://api.github.com/users/rdewolff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-01T12:42:12Z","updated_at":"2015-05-01T13:56:40Z","closed_at":null,"body":"When doing a ```su``` on the remote server, I have a strange behavior : the ```onCommandProcessing``` function get triggered multiple times.\r\n\r\n```js\r\nonCommandProcessing: function( command, response, sshObj, stream ) {\r\n         if (command == \"su\" && response.indexOf(\"Password:\") != -1 ) {\r\n           sshObj.msg.send('Sending su password');\r\n           stream.write(options.rootPassword + '\\n');\r\n         }\r\n        }\r\n```\r\n\r\nAny idea what direction to look?"},"comment":{"url":"https://api.github.com/repos/cmp-202/ssh2shell/issues/comments/98139659","html_url":"https://github.com/cmp-202/ssh2shell/issues/16#issuecomment-98139659","issue_url":"https://api.github.com/repos/cmp-202/ssh2shell/issues/16","id":98139659,"user":{"login":"cmp-202","id":8508800,"avatar_url":"https://avatars.githubusercontent.com/u/8508800?v=3","gravatar_id":"","url":"https://api.github.com/users/cmp-202","html_url":"https://github.com/cmp-202","followers_url":"https://api.github.com/users/cmp-202/followers","following_url":"https://api.github.com/users/cmp-202/following{/other_user}","gists_url":"https://api.github.com/users/cmp-202/gists{/gist_id}","starred_url":"https://api.github.com/users/cmp-202/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmp-202/subscriptions","organizations_url":"https://api.github.com/users/cmp-202/orgs","repos_url":"https://api.github.com/users/cmp-202/repos","events_url":"https://api.github.com/users/cmp-202/events{/privacy}","received_events_url":"https://api.github.com/users/cmp-202/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T13:56:40Z","updated_at":"2015-05-01T13:56:40Z","body":"Password prompt detection has to wait until the buffer is loaded"}}