Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 17:44:14 +0000 (UTC)
From:      "Philip M. Gollucci" <pgollucci@FreeBSD.org>
To:        ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: ports/net Makefile ports/net/p5-IO-MultiPipe Makefile distinfo pkg-descr pkg-plist
Message-ID:  <200901261744.n0QHiEol056615@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
pgollucci    2009-01-26 17:44:14 UTC

  FreeBSD ports repository

  Modified files:
    net                  Makefile 
  Added files:
    net/p5-IO-MultiPipe  Makefile distinfo pkg-descr pkg-plist 
  Log:
  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 seperately.
  
  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');
  
  WWW: http://search.cpan.org/~vvelox/IO-MultiPipe/
  
  PR:             ports/ports/130563
  Submitted by:   Zane C, Bowers <vvelox at vvelox.net>
  
  Revision  Changes    Path
  1.2067    +1 -0      ports/net/Makefile
  1.1       +22 -0     ports/net/p5-IO-MultiPipe/Makefile (new)
  1.1       +3 -0      ports/net/p5-IO-MultiPipe/distinfo (new)
  1.1       +20 -0     ports/net/p5-IO-MultiPipe/pkg-descr (new)
  1.1       +5 -0      ports/net/p5-IO-MultiPipe/pkg-plist (new)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901261744.n0QHiEol056615>