On 11/14/2013 6:25 AM, ZHONG Zhu wrote: > Hi Scott, > > Attached our sample code. Could you check if it works on your Windows > PC? Thanks! > > We just can’t get it work. > > BR, > > Zhu > > *From:*interest-bounces+zhu.zhong=alcatel-sbell.com...@qt-project.org > <mailto:interest-bounces+zhu.zhong=alcatel-sbell.com...@qt-project.org> > [mailto:interest-bounces+zhu.zhong=alcatel-sbell.com...@qt-project.org] > *On Behalf Of *Scott Aron Bloom > *Sent:* 2013年11月14日11:01 > *To:* qt-interest (interest@qt-project.org <mailto:interest@qt-project.org>) > *Subject:* Re: [Interest] QProcess wrap the telnet.exe > > What is not working? > > Can you call telnet.exe? or is it waiting for stdin data in order to go? > > What argumetns are you using? > > Is the process starting (Connect to the appropriate slots to see) > > > Scott > > *From:*GUO Qiang A [mailto:qiang.a....@alcatel-sbell.com.cn] > *Sent:* Wednesday, November 13, 2013 6:58 PM > *To:* Scott Aron Bloom; qt-interest (interest@qt-project.org > <mailto:interest@qt-project.org>) > *Cc:* ZHONG Zhu > *Subject:* RE: QProcess wrap the telnet.exe > > Hi Scott, > > I just use the same code. > > It works for cmd.exe, but it can’t work in windows with telnet.exe. > > Do you have other suggestions? > > Thanks. > > *From:*Scott Aron Bloom [mailto:scott.bl...@onshorecs.com] > *Sent:* 2013年11月14日10:48 > *To:* GUO Qiang A; qt-interest (interest@qt-project.org > <mailto:interest@qt-project.org>) > *Cc:* ZHONG Zhu > *Subject:* RE: QProcess wrap the telnet.exe > > Please don’t respond privately… > > > I connect to > > connect( process, SIGNAL( readyReadStandardError() ), this, SLOT( > slotProcessReadyReadStdErr() ) ); > > connect( process, SIGNAL( readyReadStandardOutput() ), this, SLOT( > slotProcessReadyReadStdOut() ) ); > > Then a simple > > QByteArray txt = process->readAllStandardOutput(); > > In the slots should have you covered > > I use process->start( execName, args ) to start her up. > > > Scott > > *From:*GUO Qiang A [mailto:qiang.a....@alcatel-sbell.com.cn] > *Sent:* Wednesday, November 13, 2013 6:46 PM > *To:* Scott Aron Bloom > *Cc:* ZHONG Zhu > *Subject:* QProcess wrap the telnet.exe > > Hi Scott, > > Can you show me how to use pipes? > > I have connected the readyReadStandardOutput and readyReadStandardError > signals but it can’t work. > > thanks. > > -----Original Message----- > > From: interest-bounces+zhu.zhong=alcatel-sbell.com...@qt-project.org > <mailto:interest-bounces+zhu.zhong=alcatel-sbell.com...@qt-project.org> > [mailto:interest-bounces+zhu.zhong=alcatel-sbell.com...@qt-project.org] > On Behalf Of Scott Aron Bloom > > Sent: 2013年11月13日15:26 > > To: Qt Project MailingList > > Subject: Re: [Interest] Expect for Qt? > > QProcess works fine for telnet and ftp, you need to connect the input > and output pipes in order to send data into it. > > Scott > > Best Regards, > > Qiang Guo > > *EasyTest*(Alcatel-Lucent automation test tool) NOW *FREE**on internet*at > > *https://github.com/EasyTestTeam/EasyTest* > > > > _______________________________________________ > Interest mailing list > Interest@qt-project.org > http://lists.qt-project.org/mailman/listinfo/interest > Hi Zhu,
In your code, you are trying to launch *telent.exe* instead of *telnet.exe*. Is this intented, or is it a typing error? Josh _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest