<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Want script to open terminal]]></title><description><![CDATA[<p dir="auto">I'm doing a program (OS X) that needs to open a terminal then issue a command:</p>
<p dir="auto">"adb -s ipaddress:5555 shell" where the ipaddress is variable depending on what android device is connected. Terminal.app can't accept arguments, so I'm trying a bash script:</p>
<p dir="auto">@<br />
#!/bin/bash<br />
/Applications/adbfire/adb -s $1 shell<br />
@</p>
<p dir="auto">qt code:</p>
<p dir="auto">@<br />
daddr = "192.168.1.1:5555"<br />
cstring = "/Applications/adbFire/startadb.command";<br />
QProcess::startDetached(cstring,QStringList() &lt;&lt; daddr);<br />
@</p>
<p dir="auto">I need the startDetached to open a terminal, then run the code. Now it sends activity to Application output. Can I make startDetached act as if I double-clicked the file: open a term to run it?</p>
]]></description><link>https://forum.qt.io/topic/43258/want-script-to-open-terminal</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 17:56:00 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/43258.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jul 2014 00:37:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Want script to open terminal on Thu, 03 Jul 2014 03:03:54 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, I'll try this out.</p>
]]></description><link>https://forum.qt.io/post/234416</link><guid isPermaLink="true">https://forum.qt.io/post/234416</guid><dc:creator><![CDATA[jocala]]></dc:creator><pubDate>Thu, 03 Jul 2014 03:03:54 GMT</pubDate></item><item><title><![CDATA[Reply to Want script to open terminal on Thu, 03 Jul 2014 02:59:48 GMT]]></title><description><![CDATA[<p dir="auto">You are trying start two external process at a time. You can try the following.</p>
<ol>
<li>Use the 'system' api to start the external command. Try whether this helps.</li>
<li>You can start the external process as terminal. This process is treated like I/O device. Redirect the stdin/out of external process and write what you want from Qt process.</li>
</ol>
<p dir="auto">See if any of these help you.</p>
]]></description><link>https://forum.qt.io/post/234415</link><guid isPermaLink="true">https://forum.qt.io/post/234415</guid><dc:creator><![CDATA[dheerendra]]></dc:creator><pubDate>Thu, 03 Jul 2014 02:59:48 GMT</pubDate></item></channel></rss>