I don't why there is no output....

chad cdalten at gmail.com
Fri Dec 24 19:00:36 EST 2010


Given the following...

#!/usr/bin/python

import pexpect

p = pexpect.spawn('cat')
p.sendline('1234')
p.expect (['1234'])
p.expect (['1234'])

I no output when I run it...

[cdalten at localhost oakland]$ ./ecat.py
[cdalten at localhost oakland]$

I don't get it. I was expecting to see the output from both the tty
and cat. Instead, I see nothing. Why?



More information about the Python-list mailing list