App-Basis
view release on metacpan or search on metacpan
lib/App/Basis.pm view on Meta::CPAN
return $r ;
}
# ----------------------------------------------------------------------------
sub run_cmd
{
my ( $cmd, $timeout ) = @_ ;
# use our local version of path so that it can pass taint checks
local $ENV{PATH} = $ENV{PATH} ;
# pass everything thought encode incase there is utf8 there
utf8::encode($cmd) ;
my %data = ( command => $cmd ) ;
$data{timeout} = $timeout if ($timeout) ;
my ( $ret, $err, $full_buff, $stdout_buff, $stderr_buff ) = run(%data) ;
my $stdout = join( "\n", @{$stdout_buff} ) ;
( run in 0.345 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )