Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub execute {
- my ($command) = @_;
- if (! run $command, \undef, \my $out, \my $err, timeout( 10 ) ) {
- say "exit code = $?";
- say "stderr $err";
- put "stdout $out";
- die "Died";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement