Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Keep It Simple, Stupid
 
PerlMonks  

Re: Running a Perl script in the background from another Perl script

by the_slycer (Chaplain)
on Jul 10, 2001 at 18:39 UTC ( [id://95411]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Running a Perl script in the background from another Perl script

Here is how you do it with Win32::Process:
use Win32::Process; Win32::Process::Create($Win32::Process::Create::ProcessObj, 'c:/perl/bin/perl.exe', #path to perl 'perl script.pl', #perl script 0, DETACHED_PROCESS, ".")or die "$!";
  • Comment on Re: Running a Perl script in the background from another Perl script
  • Download Code

Replies are listed 'Best First'.
Re: Re: Running a Perl script in the background from another Perl script
by mikeo (Initiate) on Jul 10, 2001 at 18:47 UTC
    Thanks for the quick reply! It works great. -Mikeo
Re: Re: Running a Perl script in the background from another Perl script
by jplindstrom (Monsignor) on Jul 10, 2001 at 19:05 UTC
    I would try to avoid hard coding the path to perl, using $^X to keep track of the perl binary.

    perldoc perlvar for more info.

    /J

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://95411]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.