in reply to Re^3: Silencing errors in a php script using perl nd pipes.
in thread Silencing errors in a php script using perl nd pipes.
How do I modify that perl code to pass the standard input on?#!/usr/bin/perl use strict; use warnings; use IPC::Open3 qw( open3 ); use Symbol qw( gensym ); my $pid = open3( \*STDIN, \*STDOUT, my $fr_chld_err = gensym(), '/home/bevs/bin/email' ); while (<$fr_chld_err>) { next if /Module 'eAccelerator' already loaded/; print STDERR $_; } waitpid($pid, 0) or die;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Silencing errors in a php script using perl nd pipes.
by ikegami (Patriarch) on Jun 20, 2008 at 17:45 UTC |