<HTML>
<HEAD>
<TITLE>Using KWSys to execute a detached process (Linux)</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
&nbsp;&nbsp;I&#8217;ve been fruitlessly trying to use KWSys to execute a detached process in Linux. &nbsp;Perhaps it is not surprising that this fails, because the detach code does not seem to be tested. &nbsp;Does anyone have an experience or suggestions? &nbsp;Here&#8217;s a snippit of my code:<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;itksysProcess_SetCommand ( process, StringCommandLine );<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;itksysProcess_SetOption ( process, itksysProcess_Option_Detach, 1 );<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;itksysProcess_Execute ( process );<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;std::cout &lt;&lt; &quot;Execute&quot; &lt;&lt; std::endl;<BR>
<BR>
<BR>
Strangely enough, it works correctly in the debugger, but not straight from the command line.<BR>
<BR>
Thanks,<BR>
-dan<BR>
<BR>
<BR>
-- <BR>
<B>Daniel Blezek, PhD<BR>
</B>Medical Imaging Informatics Innovation Center<BR>
<BR>
P 127 or (77) 8 8886<BR>
T 507 538 8886<BR>
E <a href="blezek.daniel@mayo.edu">blezek.daniel@mayo.edu</a><BR>
<BR>
Mayo Clinic<BR>
200 First St. S.W.<BR>
Harwick SL-44<BR>
Rochester, MN 55905<BR>
mayoclinic.org<BR>
&quot;It is more complicated than you think.&quot; -- RFC 1925<BR>
</SPAN></FONT>
</BODY>
</HTML>