Help for this page

Select Code to Download


  1. or download this
    run \@cmd, \$in, \$out, \$err, timeout( 3, exception => 'timeout' );
    
  2. or download this
    #!/usr/bin/perl -w
    
    ...
    print "ERROR: $err\n\n" if $err;
    chomp($out) && print "Output: $out\n" if $out;
    print "Expected output: ", param('out') if param('out');