Re: PHP_ProcessWatcher
| From: | Michael Wallner | Date: | Fri, 07 Nov 2003 12:42:22 +0000 |
| Subject: | Re: PHP_ProcessWatcher | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-23334@lists.php.net to get a copy of this message | ||
Hi Stefan Neufeind, you wrote:
First of all, thanks for your response, and keep in mind that this
class is a first quick shot and at an early development state :)
> In general this sounds interesting to me. But how about handling
> the "events" inside PHP? I mean, being able to call a function and
> not <execute> a separate program?
This is planned, and should not be a big task.
> And how about resetting the script-timeout in your php-script-loop?
AFAIK the CL-Interface has implicit infinite timeout.
> I'm not against the package - parsing output of a
> process-"watching"- tool seems a good idea. But maybe you could
> include advanced features in your tool - or separate some some
> core-functionality (e.g. parsing of a ps-output etc.) in a separate
> package?
Well the output of
Attachment: [application/pgp-signature]
ps is very flexible. PHP_ProcWatch just splits
the headline of the output, uses this as array keys and sorts the
lines below into an array with these array keys.
> If I wish to count all httpd-processes using your lib, dump a list
> of all httpd-pids or simply want to show a "ps ax"-like output that
> is generated by a PHP-script from an array into which you parsed
> the ps- output that would be quite handy from my view.
Sorry, didn't figure out that paragraph...
<fullquote />
Thanks,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature]