C
chad
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@localhost oakland]$ ./ecat.py
[cdalten@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?
#!/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@localhost oakland]$ ./ecat.py
[cdalten@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?