[Interest] Qt and bash scripts
Thiago Macieira
thiago.macieira at intel.com
Sun Jul 1 13:38:38 CEST 2012
On domingo, 1 de julho de 2012 21.33.07, Phil wrote:
> On 01/07/12 21:10, Thiago Macieira wrote:
> > On domingo, 1 de julho de 2012 19.10.51, Phil wrote:
> >> myProcess.startDetached("ls");
> >
> > You started detached. You don't get the output of a detached execution.
> > You
> > need to use start() to communicate with a process.
>
> Thanks Thiago for your reply.
>
> I had also tried start() but the output still goes to the console. Is it
> possible to have the directory list inserted into a string or string list?
Please show us the code you used when you used start().
By default, the stdout and stderr of a program launched from start() goes to
the QProcess pipes and you can read it with the regular QIODevice and QProcess
read functions.
PS: you don't need ls to list a directory.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120701/9258e709/attachment.sig>
More information about the Interest
mailing list