<div dir="ltr">Thanks Eric! I will look into your suggestions.<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 12, 2022 at 1:13 PM Eric Werner <<a href="mailto:ewerybody@gmail.com">ewerybody@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hello Frank,</div><div>Have you had a look at the fortuneserver/client examples?</div><div>They use a QTcpSocket connection and it looks pretty solid.</div><div><br></div><div>If you don't want any direct connections like these I guess a dedicated log and 
QFileSystemWatcher to read it is fine.<br>It's also pretty quick!</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div dir="auto">I also need to display any stdout or stderror from the launched applications though.</div></div></blockquote><div>Well this sounds rather tough (to me). You'd need a detached process that actually captures the outputs.</div><div><br></div><div>So you could run a python process running the desired 3rd party app via subprocess.Popen and constantly listening to the outputs on<br>proc.stderr.readline()</div><div>proc.stdout.readline()</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 10, 2022 at 8:15 AM Frank Rueter <<a href="mailto:frank@ohufx.com" target="_blank">frank@ohufx.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">I am writing an app launcher which will allow for several commercial applications to be launched into a custom process environment.</div><div dir="auto">To ensure that none of the launched applications die in case my launcher crashes, I am using QProcess.startDetached().</div><div dir="auto"><br></div><div dir="auto">I also need to display any stdout or stderror from the launched applications though.</div><div dir="auto"><br></div><div dir="auto">Since I can't connect the signals of detached processes back to my launcher app I assume the only way is to have them output to a log file which the launcher can read. Is that the right approach?</div><div dir="auto">Should I use QFileSystemWatcher to monitor the log files and read&purge them as they change or is there a better way?</div><div dir="auto"><br></div><div dir="auto">How would the pros do this?</div><div dir="auto"><br></div><div dir="auto">Cheers,</div><div dir="auto">FrankĀ </div></div>
_______________________________________________<br>
PySide mailing list<br>
<a href="mailto:PySide@qt-project.org" target="_blank">PySide@qt-project.org</a><br>
<a href="https://lists.qt-project.org/listinfo/pyside" rel="noreferrer" target="_blank">https://lists.qt-project.org/listinfo/pyside</a><br>
</blockquote></div>
</blockquote></div>