Arch
view release on metacpan or search on metacpan
perllib/Arch/Run.pm view on Meta::CPAN
=item B<command> => I<$command>
=item B<command> => [ I<$executable> I<$argument> ... ]
Program and parameters.
=item B<mode> => I<$accum_mode>
Control how output data is accumulated and passed to B<data> and
B<finish> callbacks.
I<$accum_mode> can be one of
=over 4
=item B<RAW>
No accumulation. Pass output to B<data> callback as it is received.
perllib/Arch/Run.pm view on Meta::CPAN
=item B<handle_output> I<$pid>
Handle available output from process I<$pid>.
B<ATTENTION:> Call this method only if there really is output to be
read. It will block otherwise.
=item B<poll> I<$timeout>
Check running subprocesses for available output and run callbacks as
appropriate. Wait at most I<$timeout> seconds when no output is
available.
Returns the number of processes that had output available.
=item B<wait> I<$pid>
Wait for subprocess I<$pid> to terminate, repeatedly calling B<poll>.
Returns the processes exit status or C<undef> if B<poll> has already been
( run in 0.433 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )