Re: Using Lingua::Ispell in Embperl

2001-08-15 Thread Neil Gunton
I thought you might be interested in a follow-up to this thread. I ended up implementing a spellchecking daemon using Paul Kulchenko's wonderful SOAP::Lite module (http://www.soaplite.com and CPAN). You can take a look at a demo and download the client & server scripts from my website: http:/

Re: Using Lingua::Ispell in Embperl

2001-03-14 Thread Neil Gunton
Gerald Richter wrote: > > > And if > > I make the daemon pre-forking (i.e. able to efficiently handle multiple > > requests in parallel, like apache) then it could be quite useful in a > > web server environment. Plus, for busy websites you could put the > > spellcheck server on its own machine,

Re: Using Lingua::Ispell in Embperl

2001-03-14 Thread Gerald Richter
> And if > I make the daemon pre-forking (i.e. able to efficiently handle multiple > requests in parallel, like apache) then it could be quite useful in a > web server environment. Plus, for busy websites you could put the > spellcheck server on its own machine, load balance etc. > You may checko

Re: Using Lingua::Ispell in Embperl

2001-03-14 Thread Neil Gunton
Angus Lees wrote: > > On Tue, Mar 13, 2001 at 09:42:48AM -0500, Neil Gunton wrote: > > But it doesn't seem to affect the main problem of the spawn > > failing. This is a real corker. I wonder what else is different when > > we are running under Apache/mod_perl? I guess it could still be a > > st

Re: Using Lingua::Ispell in Embperl

2001-03-13 Thread Angus Lees
On Tue, Mar 13, 2001 at 09:42:48AM -0500, Neil Gunton wrote: > But it doesn't seem to affect the main problem of the spawn > failing. This is a real corker. I wonder what else is different when > we are running under Apache/mod_perl? I guess it could still be a > stdin problem, you mentioned that

Re: Using Lingua::Ispell in Embperl

2001-03-13 Thread Neil Gunton
Gerald Richter wrote: > > > I > > wonder what else is different when we are running under Apache/mod_perl? > > PATH and other environment variables are different I am getting the impression that this is not so much an Embperl problem (or even a mod_perl problem), but perhaps it is more of an is

Re: Using Lingua::Ispell in Embperl

2001-03-13 Thread Neil Gunton
Gerald Richter wrote: > > > I > > wonder what else is different when we are running under Apache/mod_perl? > > PATH and other environment variables are different The path to ispell is set explicitly in the code: $SIG{CHLD} = 'IGNORE'; use Lingua::Ispell; $Lingua::Ispell

Re: Using Lingua::Ispell in Embperl

2001-03-13 Thread Gerald Richter
> I > wonder what else is different when we are running under Apache/mod_perl? PATH and other environment variables are different Gerald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: Using Lingua::Ispell in Embperl

2001-03-13 Thread Neil Gunton
Gerald Richter wrote: > try to run it offline with < /dev/null appended. That simulates what Apache > does (not exactly the same) > > Does it work then ? Yes - in other words, redirecting stdin to /dev/null doesn't seem to make the script fail when being run in offline mode. Just as a sanity che

Re: Using Lingua::Ispell in Embperl

2001-03-13 Thread Neil Gunton
"Marcus R. Popetz" wrote: > > I don't know about the code failing, but for the zombies, I couldn't find a > sigchild handler in my brief grep of the code. You might try: > > #reap zombies. > $SIG{CHLD} = 'IGNORE'; > > To clean up the zombie processes. > > or > local $SIG{CHLD} = 'IG

Re: Using Lingua::Ispell in Embperl

2001-03-13 Thread Gerald Richter
> > > The other thing that is different when running under Apache is, that you > > don't have a stdin. Some programms fail if stdin is /dev/null > try to run it offline with < /dev/null appended. That simulates what Apache does (not exactly the same) Does it work then ? Maybe the module Lingua:

Re: Using Lingua::Ispell in Embperl

2001-03-13 Thread Neil Gunton
Gerald Richter wrote: > > > I am trying to integrate a spell checker into my website, and the > > Lingua::Ispell CPAN module looks like it will do what I need. I can > > successfully test the module offline, in a perl script, but when I use > > the same code in an Embperl page it fails. I see fro

Re: Using Lingua::Ispell in Embperl

2001-03-09 Thread Gerald Richter
> I am trying to integrate a spell checker into my website, and the > Lingua::Ispell CPAN module looks like it will do what I need. I can > successfully test the module offline, in a perl script, but when I use > the same code in an Embperl page it fails. I see from the module > documentation that

Re: Using Lingua::Ispell in Embperl

2001-03-09 Thread Marcus R. Popetz
At 09:38 AM 3/9/01, Neil Gunton wrote: >And when I run this code, each time I get another zombie process: >(output from ps -aux) > >nobody2296 0.0 0.0 0 0 ? Z11:50 0:00 [aspell ] >nobody2351 1.8 0.0 0 0 ? Z12:32 0:00 [aspell ] I don't know about the code failing, b

Using Lingua::Ispell in Embperl

2001-03-09 Thread Neil Gunton
I am trying to integrate a spell checker into my website, and the Lingua::Ispell CPAN module looks like it will do what I need. I can successfully test the module offline, in a perl script, but when I use the same code in an Embperl page it fails. I see from the module documentation that it calls