note
dakkar
<p>Done in that way, there is no difference: <tt>exec</tt> will start a shell, just as <tt>system</tt> does.</p>
<p>What the OP wants is:
<ul>
<li><tt>fork</tt>, then in the <em>child</em> process:</li>
<li><tt>open</tt> the output file and attach it to <tt>STDOUT</tt></li>
<li><tt>exec</tt> with the <em>list</em> of parameters (it will not invoke a shell)</li>
<li>meanwhile, in the <em>parent</em> process, you can <tt>wait</tt> for the child to finish</li>
</ul>
</p>
<p>For more info, you can look at "perlipc" and the "fork" entry in "perlfunc"</p>
<pre>--
dakkar - Mobilis in mobile
</pre>
<p><font size="-2">Most of my code <em>is</em> tested...</font></p>
<p><font size="-2"><a href="http://www.sidhe.org/~dan/blog/archives/000151.html">Perl is strongly typed, it just has very few types</a> (Dan)</font></p>
278518
278616