{"action":"closed","issue":{"url":"https://api.github.com/repos/pexpect/pexpect/issues/194","labels_url":"https://api.github.com/repos/pexpect/pexpect/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/pexpect/pexpect/issues/194/comments","events_url":"https://api.github.com/repos/pexpect/pexpect/issues/194/events","html_url":"https://github.com/pexpect/pexpect/issues/194","id":65079079,"number":194,"title":"sendline automatically appends some character while sending command","user":{"login":"jsinix","id":7500783,"avatar_url":"https://avatars.githubusercontent.com/u/7500783?v=3","gravatar_id":"","url":"https://api.github.com/users/jsinix","html_url":"https://github.com/jsinix","followers_url":"https://api.github.com/users/jsinix/followers","following_url":"https://api.github.com/users/jsinix/following{/other_user}","gists_url":"https://api.github.com/users/jsinix/gists{/gist_id}","starred_url":"https://api.github.com/users/jsinix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsinix/subscriptions","organizations_url":"https://api.github.com/users/jsinix/orgs","repos_url":"https://api.github.com/users/jsinix/repos","events_url":"https://api.github.com/users/jsinix/events{/privacy}","received_events_url":"https://api.github.com/users/jsinix/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pexpect/pexpect/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-29T17:13:00Z","updated_at":"2015-03-30T00:13:46Z","closed_at":"2015-03-30T00:13:46Z","body":"When ever i try to go to enable mode on ASA using sendline, it appends it with a character on the lft side. Here is program output in debug mode:\r\n\r\n```\r\nType help or '?' for a list of available commands.\r\nasabox/sec/act>\r\nasabox/sec/act>\r\nasabox/sec/act> enable\r\nenable\r\nPassword: abcdefgh\r\n(+) Querying configuration(please be patient)\r\n********************\r\nasabox/sec/act# terminal pager 0\r\nterminal pager 0\r\nasabox/sec/act#\r\n\r\nasabox/sec/act# show run\r\n-show run                                       ####### if you see here show starts with -, not sure why ?\r\n                      ^\r\nERROR: % Invalid input detected at '^' marker.\r\nasabox/sec/act# (+) Grabbing for asabox\r\nexit\r\n(+) Config saved to asabox-RunningConfigBackup-1427647110.TXT\r\n\r\n====================\r\n\r\nHere is the actual code i am using:\r\n\r\nprint \"(+) Sending SSH Password\"\r\nchild.sendline(passLocal)\r\nchild.sendline(\"\\r\")\r\nchild.expect('.*>')\r\nchild.sendline('enable')\r\nchild.expect('.*assword:.*')\r\nchild.sendline(enablePassLocal)\r\nprint \"(+) Querying configuration(please be patient)\"\r\nchild.expect(\".*#\")\r\nchild.sendline(\"terminal pager 0\")\r\nchild.expect(\".*#\")\r\nchild.sendline(\"\\r\")\r\nchild.expect (\".*# \")\r\nchild.sendline('show run')\r\nchild.expect(\".*#\", timeout=200)\r\n```\r\n\r\nCould you please advise ???\r\nBest Regards "}}