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

Re: Run and kill external programm after x seconds

by davido (Cardinal)
on Nov 22, 2016 at 14:40 UTC ( [id://1176340] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
            }
        }
    }
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
        print STDOUT "ping\n";
        sleep 2;
    }