[sf-perl] Spawning external program within Perl

Loo, Peter # PHX Peter.Loo at source.wolterskluwer.com
Wed Nov 8 12:02:21 PST 2006


Thank you all for your comments and advises.  I will look into each and
everyone and chose the best solution to satisfy my requirement.  You
guys are the best.
 
Peter

-----Original Message-----
From: sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com at pm.org
[mailto:sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com at pm.or
g] On Behalf Of Thalhammer, Jeffrey BGI SF
Sent: Wednesday, November 08, 2006 12:57 PM
To: San Francisco Perl Mongers User Group
Subject: Re: [sf-perl] Spawning external program within Perl

I've had success lately with Proc::Background.  It's more portable and
less arcane than using '&' in system calls.

http://search.cpan.org/~bzajac/Proc-Background-1.08/lib/Proc/Background.
pm

-Jeff 

-----Original Message-----
From: sanfrancisco-pm-bounces+jeff.thalhammer=barclaysglobal.com at pm.org
[mailto:sanfrancisco-pm-bounces+jeff.thalhammer=barclaysglobal.com at pm.or
g] On Behalf Of Loo, Peter # PHX
Sent: Wednesday, November 08, 2006 10:00 AM
To: San Francisco Perl Mongers User Group
Subject: Re: [sf-perl] Spawning external program within Perl


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: sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com at pm.org
[mailto:sanfrancisco-pm-bounces+peter.loo=source.wolterskluwer.com at pm.or
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:
> 
>    Hi,
> 
>    I was wondering if there is a built-in Perl module that would allow
me to
>    spawn  an external program and not wait for it to complete.  What I
am
>    attempting to do is, I am checking within a database for a
condition and
>    when  the  condition  is met, I want to call an external Perl
program.
>    However, I don't want to wait for the external program to complete
before
>    moving on to my next step within my program.

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 <david at fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!
_______________________________________________
SanFrancisco-pm mailing list
SanFrancisco-pm at pm.org
http://mail.pm.org/mailman/listinfo/sanfrancisco-pm


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
SanFrancisco-pm at pm.org
http://mail.pm.org/mailman/listinfo/sanfrancisco-pm 
 
-- 
 
This message and any attachments are confidential, proprietary, and may
be privileged.  If this message was misdirected, Barclays Global
Investors (BGI) does not waive any confidentiality or privilege.  If you
are not the intended recipient, please notify us immediately and destroy
the message without disclosing its contents to anyone.  Any
distribution, use or copying of this e-mail or the information it
contains by other than an intended recipient is unauthorized.  The views
and opinions expressed in this e-mail message are the author's own and
may not reflect the views and opinions of BGI, unless the author is
authorized by BGI to express such views or opinions on its behalf.  All
email sent to or from this address is subject to electronic storage and
review by BGI.  Although BGI operates anti-virus programs, it does not
accept responsibility for any damage whatsoever caused by viruses being
passed.
_______________________________________________
SanFrancisco-pm mailing list
SanFrancisco-pm at pm.org
http://mail.pm.org/mailman/listinfo/sanfrancisco-pm


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.


More information about the SanFrancisco-pm mailing list