Great Circle Associates Majordomo-Workers
(August 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Majorcool hangs waiting for input
From: Bill Houle <Bill . Houle @ SanDiegoCA . NCR . COM>
Date: Wed, 21 Aug 1996 12:03:12 -0700
To: "Mike Alleman" <lma @ foley . mpd . tandem . com>, majordomo-workers @ GreatCircle . COM

At 10:08 AM 8/21/96 -0500, Mike Alleman wrote:
>I know this was probably already answered, but I am working on
>installing majorcool.  When I run it through the web server,
>it never returns anything.
>
>When I run it stand alone it hangs until I hit CTL-D and then
>I get the contents of a web page.  Does anyone know what
>could be the cause?

I can answer for running standalone: it is a POST-style CGI and thus reads
STDIN until EOF for any variables to be passed. When you hit ^D, STDIN is
closed and you should get the Web page that is the opening screen.

Not sure about the Web side. What kind of server are you using? Ours is NCSA
and it has worked across several versions. For other servers, I suspect that
I need to add a CONTENT_LENGTH check to be more "correct". In &init_args(),
change:

        while (<>) {
                foreach (split(/&/)) {

to:

        read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
        foreach (split(/&/, $buffer)) {

and see what that does.

--bill


Indexed By Date Previous: Re: Precedence Header
From: Ajay Kochhar <kochhar@ari.ari.net>
Next: Re: Precedence Header
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Majorcool hangs waiting for input
From: "Mike Alleman" <lma@foley.mpd.tandem.com>
Next: Useful status responses at listname-request
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com