Pexpect examples

chris
2007-09-25
2013-04-22
  • chris
    chris
    2007-09-25

    Hello I am using the script.py pexpect example to run ssh sessions to remote machines. This works great and I do not know how I lived without it, however I have a problem when resizing the window when running top remotely. When running top applicaton and I winch the window down to about 10x35, I get an OSError thrown from pexpect.interact(). I believe it's the nature of the updating screen when winched down to that size. I cannot get inside this method without modifying the pexpect module. I'd rather catch the error and continue the interact session. Where would be a good place to go for this?