Re: Output of pexpect

2008-10-01 Thread Lie Ryan
On Tue, 30 Sep 2008 20:48:12 -0700, Anh Khuong wrote: > I am using pexpect and I want to send output of pexpet to both stdout > and log file concurrently. Anybody know a solution for it please let me > know. One way is to create a file-like object that forked the output to stdout and the logfil

Re: Output of pexpect

2008-09-30 Thread Karthik Gurusamy
On Sep 30, 8:48 pm, Anh Khuong <[EMAIL PROTECTED]> wrote: > Hi all, > > I am using pexpect and I want to send output of pexpet to both stdout and log > file concurrently. > Anybody know a solution for it please let me know. spawn class takes a 'logfile' parameter: __init__(self, command, args=[],

Output of pexpect

2008-09-30 Thread Anh Khuong
Hi all, I am using pexpect and I want to send output of pexpet to both stdout and log file concurrently. Anybody know a solution for it please let me know. Thanks -- http://mail.python.org/mailman/listinfo/python-list