Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Windows run an exe print its output and cut it off after a time

by VinsWorldcom (Vicar)
on Oct 12, 2012 at 17:01 UTC ( #998746=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    }
    
    print "\nTimeout! - Time to kill pid: $pid\n"
    
  2. or download this
    VinsWorldcom@C:\Users\VinsWorldcom\tmp> TimeThis test.pl
    
    ...
    TimeThis :    Start Time :  Fri Oct 12 13:01:09 2012
    TimeThis :      End Time :  Fri Oct 12 13:01:12 2012
    TimeThis :  Elapsed Time :  00:00:02.454
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2015-07-07 13:51 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 (88 votes), past polls