<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I'm no expert on this, but have you tried looking at threads? I know
from reading on Perl Monks that threads aren't that great under
Windows, but it might do what you're trying to do.<br>
<div class="moz-signature"><br>
<br>
</div>
<br>
<br>
Loo, Peter # PHX wrote:
<blockquote
 cite="mid8E3D502A002DA04FADBDED4CB4D94D3A02437509@phxmail02.phx.ndchealth.com"
 type="cite">
  <pre wrap="">Hi David, 

I did try exec() and system().  However, exec() stops my calling program
while system() waits for the called program to finish.
 
Peter

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com@pm.org">sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com@pm.org</a>
[<a class="moz-txt-link-freetext" href="mailto:sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com@pm.or">mailto:sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com@pm.or</a>
g] On Behalf Of David Fetter
Sent: Wednesday, November 08, 2006 10:55 AM
To: San Francisco Perl Mongers User Group
Subject: Re: [sf-perl] Spawning external program within Perl

On Wed, Nov 08, 2006 at 10:48:11AM -0700, Loo, Peter # PHX wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">   Hi,

   I was wondering if there is a built-in Perl module that would allow
    </pre>
  </blockquote>
  <pre wrap=""><!---->me to
  </pre>
  <blockquote type="cite">
    <pre wrap="">   spawn  an external program and not wait for it to complete.  What I
    </pre>
  </blockquote>
  <pre wrap=""><!---->am
  </pre>
  <blockquote type="cite">
    <pre wrap="">   attempting to do is, I am checking within a database for a
    </pre>
  </blockquote>
  <pre wrap=""><!---->condition and
  </pre>
  <blockquote type="cite">
    <pre wrap="">   when  the  condition  is met, I want to call an external Perl
    </pre>
  </blockquote>
  <pre wrap=""><!---->program.
  </pre>
  <blockquote type="cite">
    <pre wrap="">   However, I don't want to wait for the external program to complete
    </pre>
  </blockquote>
  <pre wrap=""><!---->before
  </pre>
  <blockquote type="cite">
    <pre wrap="">   moving on to my next step within my program.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
About ten seconds of searching with perldoc -q led me to 

perldoc -f exec

What did you try before asking here?

Cheers,
D
--
David Fetter <a class="moz-txt-link-rfc2396E" href="mailto:david@fetter.org">&lt;david@fetter.org&gt;</a> <a class="moz-txt-link-freetext" href="http://fetter.org/">http://fetter.org/</a>
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!
_______________________________________________
SanFrancisco-pm mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a>


This E-mail message is for the sole use of the intended recipient(s) and
may contain confidential and privileged information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not
the intended recipient, please contact the sender by reply E-mail, and
destroy all copies of the original message.
_______________________________________________
SanFrancisco-pm mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a>
<a class="moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a>



  </pre>
</blockquote>
</body>
</html>