Top was just a trivial example. We are stuck with using a commercial product so the option to XS it and/or recode it, is not one.
P -----Original Message----- From: Perrin Harkins [mailto:[EMAIL PROTECTED] Sent: 09 February 2004 19:07 To: Pierre Smolarek Cc: Modperl List Subject: Re: Embeding an executable into a script On Mon, 2004-02-09 at 15:37, Pierre Smolarek wrote: > 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? The most common way to solve this problem is to find a C library that does what you want and then write a perl module that uses it via XS or Inline::C. There are several modules on CPAN that provide functionality similar to the 'top' program in this way. - Perrin -- 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