App-Framework
view release on metacpan or search on metacpan
lib/App/Framework/Feature/Run.pm view on Meta::CPAN
my $run = $app->run() ;
$run->run("perl t/test/runtest.pl");
$run->run('cmd' => "perl t/test/runtest.pl", 'timeout' => $sleep);
=head1 DESCRIPTION
Provides for external command running from within an application.
An external conmmand may be run using this feature, and the output from the command may be returned for additional processing. The feature
also provides timed execution (aborting after a certain time), exit code status, and callbacks that can be defined to be called during execution
and/or after program completion.
=head2 Arguments
The access method for this feature (called as B<$app-E<gt>run()>) allows the complete run settings to be specified as a HASH. The call sets
the object L</FIELDS> from the values in this HASH, for example:
$app->run(
'cmd' => "perl t/test/runtest.pl",
'progress' => \&progress,
( run in 0.270 second using v1.01-cache-2.11-cpan-8d75d55dd25 )