[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: using "-|" construct
From: Brian Reichert <reichert () numachi ! com>
Date: 2003-08-29 17:45:10
[Download RAW message or body]
On Thu, Aug 28, 2003 at 06:43:42PM -0700, Stas Bekman wrote:
> Michael wrote:
> >I have a web service that need to get "stuff" from the system and is
> >using the following subroutine to retrieve info.
> >
> >
> >sub systeminfo {
> > if (open(FROMADMIN,"-|")) { # parent
> [...]
> >This works fine for command line exection and from cgi but fails in
> >modperl (apache 1x).
> >
> >The problem is that the initial read pipe apparently fails to open
> >under modperl.
> >
> >Is there a workaround for this? or am I just missing something
> >simple?
>
> Use IPC::Run?
Or System2?
--
Brian 'you Bastard' Reichert <reichert@numachi.com>
37 Crystal Ave. #303 Daytime number: (603) 434-6842
Derry NH 03038-1713 USA BSD admin/developer at large
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic