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