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

chad cdalten at gmail.com
Fri Dec 24 19:22:18 EST 2010


On Dec 24, 4:00 pm, chad <cdal... at gmail.com> wrote:
> 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?

Never mind. I figured it out.



More information about the Python-list mailing list