[Qt-interest] QProcess::execute -- help
kurt.korbatits at nokia.com
kurt.korbatits at nokia.com
Wed Jun 9 01:52:09 CEST 2010
Try these out:
echo "test" > /tmp/test.log
myScript >/tmp/test.log 2>&1
It could be something like "no tty for console output"
Kurt
________________________________
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of ext pmqt71
Sent: Wednesday, June 09, 2010 9:42 AM
To: qt-interest at trolltech.com
Subject: [Qt-interest] QProcess::execute -- help
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.
Please help me!
pm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100609/babcac50/attachment.html
More information about the Qt-interest-old
mailing list