Perl fork/pipe/exec
Mark Lester (mcl@cursci.co.uk)
Mon, 30 Sep 1996 18:08:00 +0100
Message-Id: <199609301549.QAA06035@styx.cursci.co.uk>
Date: Mon, 30 Sep 1996 18:08:00 +0100
From: Mark Lester <mcl@cursci.co.uk>
Subject: Perl fork/pipe/exec
To: FastCGI-list <fastcgi-developers@openmarket.com>
I am having problems forking a process and piping to/from it in fast-CGI
Perl. I understand this is because the file operations have been overloaded
by
FCGI, although I don't understand too much. I am using the open2.pl program,
which does stuff like
open(STDIN, "<&$kid_rdr");
open(STDOUT, ">&$kid_wtr");
My hack to solve this is to hang the sub-program off a socket.
My colleague Mike Smith has brought up the subject before, we need to
use FastCGI for our templating system which has a high start-up cost.
P.S. has anyone else hacked up something like
<meta view=my_view>
<tr>${first_field} <td> ${second_field} .....
</meta>
where my_view is a routine like
sub my_view
{
local($cursor,$node)=@_;
local(@array_of_records)= db_i("my_query",$cursor->{'parameter'});
# returns array of refs to hash records
return (\@array_of_records);
}
Who do we tell of our invention ?.