Is there a way to somehow attach the required executable somehow inside the
httpd alongside mod_perl (in resident memory) instead of forking out the
call to the system.

P.


-----Original Message-----
From: Ged Haywood [mailto:[EMAIL PROTECTED] 
Sent: 09 February 2004 16:03
To: Pierre Smolarek
Cc: [EMAIL PROTECTED]
Subject: Re: Embeding an executable into a script

Hi there,

On Mon, 9 Feb 2004, Pierre Smolarek wrote:

> To help improve script speed with mod perl, we need to somehow embed an
> executable inside a mod_perl script.

Forgive me for being cynical, but your explanation is unconvincing.

> Take for example, top. Is it possible to embed top inside a mod_perl
script
> and/or keep it in resident memory so there is no forking out? 

No.  Apparently you have a lot of reading to do.  A mod_perl script is
a text file written in Perl, but 'top' is a binary executable compiled
for your machine.  They're like chalk and cheese.

There are probably ways to do what you want to do but embedding an
electric iron inside an internal combustion engine so that it will do
your shirts on the way to work isn't one of them.  If you can be more
specific and forthcoming about your requirements we can be more help.

73,
Ged.


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to