If you just want to fire off a process, system() works just like the shell.&nbsp; If you want to put your command in the background to get control back, add a '&amp;' to the end of the command.<br><br>Garth<br><br><div><span class="gmail_quote">
On 11/8/06, <b class="gmail_sendername">Loo, Peter # PHX</b> &lt;<a href="mailto:Peter.Loo@source.wolterskluwer.com">Peter.Loo@source.wolterskluwer.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi David,<br><br>I did try exec() and system().&nbsp;&nbsp;However, exec() stops my calling program<br>while system() waits for the called program to finish.<br><br>Peter<br><br>-----Original Message-----<br>From: sanfrancisco-pm-bounces+peter.loo=
<a href="mailto:source.wolterskluwer.com@pm.org">source.wolterskluwer.com@pm.org</a><br>[mailto:<a href="mailto:sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com@pm.or">sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com@pm.or
</a><br>g] On Behalf Of David Fetter<br>Sent: Wednesday, November 08, 2006 10:55 AM<br>To: San Francisco Perl Mongers User Group<br>Subject: Re: [sf-perl] Spawning external program within Perl<br><br>On Wed, Nov 08, 2006 at 10:48:11AM -0700, Loo, Peter # PHX wrote:
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Hi,<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;I was wondering if there is a built-in Perl module that would allow<br>me to<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;spawn&nbsp;&nbsp;an external program and not wait for it to complete.&nbsp;&nbsp;What I<br>am<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;attempting to do is, I am checking within a database for a
<br>condition and<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;when&nbsp;&nbsp;the&nbsp;&nbsp;condition&nbsp;&nbsp;is met, I want to call an external Perl<br>program.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;However, I don't want to wait for the external program to complete<br>before<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;moving on to my next step within my program.
<br><br>About ten seconds of searching with perldoc -q led me to<br><br>perldoc -f exec<br><br>What did you try before asking here?<br><br>Cheers,<br>D<br>--<br>David Fetter &lt;<a href="mailto:david@fetter.org">david@fetter.org
</a>&gt; <a href="http://fetter.org/">http://fetter.org/</a><br>phone: +1 415 235 3778&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AIM: dfetter666<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Skype: davidfetter<br><br>Remember to vote!<br>_______________________________________________
<br>SanFrancisco-pm mailing list<br><a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a>
<br><br><br>This E-mail message is for the sole use of the intended recipient(s) and<br>may contain confidential and privileged information.&nbsp;&nbsp;Any unauthorized<br>review, use, disclosure or distribution is prohibited.&nbsp;&nbsp;If you are not
<br>the intended recipient, please contact the sender by reply E-mail, and<br>destroy all copies of the original message.<br>_______________________________________________<br>SanFrancisco-pm mailing list<br><a href="mailto:SanFrancisco-pm@pm.org">
SanFrancisco-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br></blockquote></div><br>