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

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

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

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    
    ...
            STDOUT->flush;
        }
    }                                           # lather, rinse, repeat.
    
  2. or download this
    #!/usr/bin/env perl
    
    ...
        print STDOUT "ping\n";
        sleep 2;
    }
    
  3. or download this
    Our command is >>>/home/......./scripts/outputter<<<
    ......................................................................
    +..........
    ...
    (pong)
    .................................^C
    Command terminated