Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Threads

by Nitrox (Chaplain)
on Dec 18, 2002 at 13:48 UTC ( [id://220837]=note: print w/replies, xml ) Need Help??


in reply to Running another script in the background on Win32

Here is a snippet of what I use to start another script that sit's in a while(1) loop polling the serial port.
use Win32::Process; my ($perl_path) = $^X =~ /(.*)\\perlse\.dll$/i; $perl_path =~ s/\\/\//g; Win32::Process::Create($Obj,$perl_path . "/perl.exe","perl poller.pl", +0,DETACHED_PROCESS,"/scripts") or die ErrorReport();
-Nitrox

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://220837]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 12:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found