Re: Special characters (^M & ^[[D) when I read pxssh::before and write it to a file

2010-03-17 Thread Benjamin Kaplan
On Wed, Mar 17, 2010 at 9:54 AM, ashwini yal wrote: > Hi, > > I am writing a python script which logs into the machine using pxssh, sends > a command, reads the response and writes the response to the file. > > But, when I open the file in the editor like vi, its showing special > characters like

Special characters (^M & ^[[D) when I read pxssh::before and write it to a file

2010-03-17 Thread ashwini yal
Hi, I am writing a python script which logs into the machine using pxssh, sends a command, reads the response and writes the response to the file. But, when I open the file in the editor like vi, its showing special characters like ^M and ^[[D instead of spaces or newlines. This is how my code l