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

Run Subroutine of a class as a background process using Win32::Process

by srlbharu (Acolyte)
on Mar 04, 2013 at 05:55 UTC ( #1021589=perlquestion: print w/ replies, xml ) Need Help??
srlbharu has asked for the wisdom of the Perl Monks concerning the following question:

Hi, Is it possible to run subroutine of a class as a background process using win32::Process module? If possible please let me know how to do that? Is it possible to get the varaibles a class using $self in other process?

Comment on Run Subroutine of a class as a background process using Win32::Process
Re: Run Subroutine of a class as a background process using Win32::Process
by Anonymous Monk on Mar 04, 2013 at 08:30 UTC

    Is it possible to run subroutine of a class as a background process using win32::Process module?

    No, but you can run a program, and that program can call any subroutine it wants

    Also,  [ddg://"use Win32::Process" site:perlmonks.org] [google://"use Win32::Process" site:perlmonks.org] "use Win32::Process" site:perlmonks.org "use Win32::Process" site:perlmonks.org

    Is it possible to get the varaibles a class using $self in other process?

    No. Its like money, just because a human(program) like me has a wallet (variable) and a human(program) like you has a waller(variable), doesn't mean when you open(access) your wallet(variable) you get my money(data) -- we have to talk (communicate) and make an exchange

    see perlipc, the simplest form for communication is @ARGV/ STDIN/ STDOUT/ STDERR

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (21)
As of 2015-07-02 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls