Why not adopt me?
NAME
IPC::Run::Fused::POSIX - Implementation of IPC::Run::Fused for POSIX-ish systems.
VERSION
version 1.000001
METHODS
run_fused
run_fused( $fh, $executable, @params ) || die "$@";
run_fused( $fh, \$command_string ) || die "$@";
run_fused( $fh, sub { .. } ) || die "$@";
# Recommended
run_fused( my $fh, $execuable, @params ) || die "$@";
# Somewhat supported
run_fused( my $fh, \$command_string ) || die "$@";
$fh will be clobbered like 'open' does, and $cmd, @args will be passed, as-is, through to exec() or system().
$fh will point to an IO::Handle attached to the end of a pipe running back to the called application.
the command will be run in a fork, and STDERR
and STDOUT
"fused" into a singular pipe.
NOTE: at present, STDIN
's FD is left unchanged, and child processes will inherit parent STDIN
's, and will thus block ( somewhere ) waiting for response.
AUTHOR
Kent Fredric <kentnl@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.