[Qt-interest] qprocess cannot run unix commands?
Gabriele Kahlout
gabriele at mysimpatico.com
Mon Jun 7 13:09:32 CEST 2010
QProcess::execute("ls");
works, but not:
QProcess::execute("cd;ls");
2010/6/7 Gabriele Kahlout <gabriele at mysimpatico.com>
> Hello, I was wondering why this result is empty in:
>
> QProcess gzip;
>
> gzip.start("bash");
>
> assert(gzip.waitForStarted());
>
> gzip.write("ls");
>
> gzip.closeWriteChannel();
>
> QByteArray result = gzip.readAll();
>
> cout << result.data() ;
>
> gzip.close();
>
>
> is this true:
>
> http://www.linuxquestions.org/questions/programming-9/problems-running-console-commands-using-qprocess-672207/
>
> The documentation illuded me that my code should work.
>
--
Regards,
K. Gabriele
--- unchanged since 25/1/10 ---
P.S. Unless a notification (LON), please reply either with an answer OR with
" ACK" appended to this subject within 48 hours. Otherwise, I might resend.
In(LON, this) ∨ In(48h, TimeNow) ∨ ∃x. In(x, MyInbox) ∧ IsAnswerTo(x, this)
∨ (In(subject(this), subject(x)) ∧ In(ACK, subject(x)) ∧
¬IsAnswerTo(x,this)) ⇒ ¬IResend(this).
Also note that correspondence may be received only from specified a priori
senders, or if the subject of this email ends with a code, eg. -LICHT01X,
then also from senders whose reply contains it.
∀x. In(x, MyInbox) ⇒ In(senderAddress(x), MySafeSenderList) ∨ (∃y. In(y,
subject(this) ) ∧ In(y,x) ∧ isCodeLike(y, -LICHT01X) ).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100607/06690cbb/attachment.html
More information about the Qt-interest-old
mailing list