BSD Ports

devel/p5-IO-MultiPipe 0.0.0_1 FreeBSD

Check for errors when running a command through multiple pipes

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Categories
devel, perl5
Package size
5.3 KiB, 7.2 KiB installed

Description

Normally if a part of a pipe fails, depending on the location, it won't be detected. This breaks down a command involving pipes and runs each command separately.

It uses open3 to run each chunk of the pipe.

use IO::MultiPipe;

my $pipes = IO::MultiPipe->new();

\#This sets the pipe that will be run.
$pipes->set('sed s/-// \| sed s/123/abc/ \| sed s/ABC/abc/');
if ($pipes->{error}){
    print "Error!\\n";
}

\#'123-ABCxyz' through the command set above.
my $returned=$pipes->run('123-ABCxyz');

In the other systems

SystemPortVersion
FreeBSDdevel/p5-IO-MultiPipe0.0.0_1
DragonFlydevel/p5-IO-MultiPipe0.0.0_1
HardenedBSDdevel/p5-IO-MultiPipe0.0.0_1
GhostBSDdevel/p5-IO-MultiPipe0.0.0_1

Install

Binary package:

pkg install p5-IO-MultiPipe

From the ports tree:

cd /usr/ports/devel/p5-IO-MultiPipe/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-IO-MultiPipe>0:devel/p5-IO-MultiPipe

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0.0_10.0.0_10.0.0_10.0.0_10.0.0_1
FreeBSD:14:quarterly0.0.0_10.0.0_1n/a0.0.0_10.0.0_1
FreeBSD:15:latest0.0.0_10.0.0_1n/a0.0.0_10.0.0_1
FreeBSD:15:quarterly0.0.0_10.0.0_1n/an/an/a
FreeBSD:16:latest0.0.0_10.0.0_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 1
Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 2
  • %%SITE_PERL%%/IO/MultiPipe.pm
  • %%PERL5_MAN3%%/IO::MultiPipe.3.gz
distinfo 1
FileSizeSHA256
IO-MultiPipe-0.0.0.tar.gz3877e300e5ca4c8a80d563b6b75191bdb37bd0833d2d14b7ed6c970cee6a8c0dd17c
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.