Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Run and kill external programm after x seconds

by GotToBTru (Prior)
on Nov 22, 2016 at 21:03 UTC ( [id://1176364] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    ...
    }
    close CMD;
    printf "Actually stopped at %d\n", time();
    
  2. or download this
    H:\perl>perl 1176335.pl
    Started at 1479848254
    ->Hello World from 1176332 PART 2
    ...
    (from 1176335.pl): Nothing yet | ->.
    Stopping at 1479848257!
    Actually stopped at 1479848264