Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
program I feed in interactively as below [url]http://pastebin.com/qGHMiHjp[/url] child.before contains the expected data (output of expect command) I run the code as python progname.py: (code shown below example run on pastebin) [url]http://pastebin.com/AWY0vM88[/url] import pexpect import sys child = pexpect.spawn('gdb',logfile=sys.stdout) try: child.expect(pexpect.EOF,timeout=0) except Exception, e: print child.before import code;code.interact(local=locals()) and child.before … |