Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How to call two programs simultaneously from a running program

by BrowserUk (Pope)
on Aug 11, 2008 at 07:00 UTC ( #703570=note: print w/replies, xml ) Need Help??


in reply to How to call two programs simultaneously from a running program

use threads; use threads::shared; ... my $Bresults:shared; async { $Bresults = `perl B.pl`; }->detach; my $Cresults = `perl C.pl`; ## Do something with the results;

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: How to call two programs simultaneously from a running program
  • Download Code

Replies are listed 'Best First'.
Re^2: How to call two programs simultaneously from a running program
by ccmbvipin (Initiate) on Sep 19, 2008 at 04:35 UTC
    Hi, thanks for useful suggestion I also need to call program D, but not untill both B and C have been executed. Please guide.

      use threads; use threads::shared; ... my $Bresults:shared; async { $Bresults = `perl B.pl`; }->detach; my $Cresults = `perl C.pl`; sleep 1 until defined $Bresults; my $Dresults = `perl D.pl $Bresults $Cresults`;

      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2018-11-15 01:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (179 votes). Check out past polls.

    Notices?