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

Re^3: How to make a thread to wait till a command on shell get completed.

by BrowserUk (Patriarch)
on Dec 02, 2013 at 17:59 UTC ( #1065314=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
         if ( $totalKeys le $numThreads ) {
             $numThreads = $totalKeys;
         }
    
  2. or download this
        for my $href (@arrHash) {
             my $t = threads->create( \&Thread, \%$href, $sourcePath,
                 $destinationPath );
             push( @arrThreads, $t );
         }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2023-12-08 19:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (37 votes). Check out past polls.

    Notices?