[Qt-interest] Fwd: QProcess::execute -- help

pmqt71 pmqt71 at gmail.com
Wed Jun 9 15:51:04 CEST 2010


Solved!

Some calls to "echo" in the .php file caused the premature end of the
script.

Strange, I think. A background process hangs trying to write to the (lost)
console?

thank you all.
pm






2010/6/9 Sean Harmer <sean.harmer at maps-technology.com>

Hi,
>
> On 09/06/2010 00:41, pmqt71 wrote:
> >
> > Hi all,
> >
> > I'm using QProcess::execute in my Qt server application to run a script
> > on the server side (Ubuntu 64 bit). It works fine when I run my app, but
> > doen't work when I close the console.
> >
> > the application is alive because I run it in background ( ./myApp& ) and
> > I find it in the ps list, but the script is not executed.
> >
> > I'm using both a relative and fixed path, also I tried the system
> function:
> >
> > QProcess::execute("./myScript &");
> > QProcess::execute("/entire/path/myScript &");
> > QProcess::execute("./myScript");
> > QProcess::execute("/entire/path/myScript");
> > system("/entire/path/myScript &");
> >
> > but without success.
>
> Have you looked at the QtService solution? This allows you to easily run
> your application as a daemon process.
>
>
> http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtservice/
>
> Cheers,
>
> Sean
>  _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100609/e4fffe21/attachment.html 


More information about the Qt-interest-old mailing list