Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: @array_commands to execute simultaneously and collect output on single log

by tybalt89 (Monsignor)
on Dec 15, 2016 at 21:20 UTC ( [id://1177886]=note: print w/replies, xml ) Need Help??


in reply to @array_commands to execute simultaneously and collect output on single log

#!/usr/bin/perl # http://perlmonks.org/?node_id=1177838 use strict; use warnings; my @cmds = ('date +%S.%N') x 80; my @fhs; open $fhs[@fhs], '-|', $_ or die "$! on open of $_" for @cmds; print map <$_>, @fhs;
  • Comment on Re: @array_commands to execute simultaneously and collect output on single log
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-18 14:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found