Help for this page

Select Code to Download


  1. or download this
    sub run_with_timeout {
        my ($cmd, $timeout) = @_;
    ...
    
    my $out = run_with_timeout("$solver $file", $timeout);
    print defined($out) ? "output of solver:\n@$out" : "timed out";
    
  2. or download this
            exec "exec $cmd";