Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pexpect fails to read string graterthan 65 #225

Closed
Raju-Penumatsa opened this issue Jul 1, 2015 · 2 comments
Closed

pexpect fails to read string graterthan 65 #225

Raju-Penumatsa opened this issue Jul 1, 2015 · 2 comments

Comments

@Raju-Penumatsa
Copy link

I am trying to send the below cammand using pexpect and fails

client.send('ls -ltr ; pwd ;echo "hi"; echo "wi"; echo "/rd/nod/ver#hard plat" ')

THIS PASSES the only change here is one character difference:

client.send('ls -ltr ; pwd ;echo "hi"; echo "w"; echo "/rd/nod/ver#hard plat" ')

this pops when the expect string is

expect_str = "%s(.*)%s" % (command, self._default_prompt)    

If the string length of the command is grater that 65, it fails.

@Raju-Penumatsa
Copy link
Author

the issue is noticed in pexpect version : 3.3

@Raju-Penumatsa
Copy link
Author

This is not an issue with pexpect, If i can change the settings [setwinsize ], it works fine !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant