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

2010-12-25 Thread Steven D'Aprano
On Fri, 24 Dec 2010 16:22:18 -0800, chad wrote: >> 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. Well, don't keep us in suspenders. What was the problem? -- Steven -- http://mail.python.org/mailm

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

2010-12-24 Thread chad
On Dec 24, 4:00 pm, chad 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... > > [cdal...@localhost oakland]$ ./ecat.py > [cdal...@localhost oakland]$

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

2010-12-24 Thread 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... [cdal...@localhost oakland]$ ./ecat.py [cdal...@localhost oakland]$ I don't get it. I was expecting to see the output from b