[Interest] QProcess wrap the telnet.exe

Scott Aron Bloom scott.bloom at onshorecs.com
Thu Nov 14 03:47:56 CET 2013


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.Guo at 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.cn at qt-project.org<mailto:interest-bounces+zhu.zhong=alcatel-sbell.com.cn at qt-project.org> [mailto:interest-bounces+zhu.zhong=alcatel-sbell.com.cn at 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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131114/05e17725/attachment.html>


More information about the Interest mailing list