It's been a while so...

I wrote:

>Server: NT4/IIS4/Sp6a + nnn hotfixes
>Perl version: 5.00307
>
>Sometimes my normally-working scripts will produce no output at all to the
>browser.  In the Perl error log, a corresponding "script produced no
>output"
>error is recorded. In one case, all the script does is read a number of
>files, parse the information and return it to the browser, so I'm not sure
>why 9 out of 10 times the script would work perfectly, and on the 10th time
>I get the "script produced no output" error.


Manesh Rao wrote:

> Can you post the exact script??
>
> That would help you get a more accurate solution, faster.
>
> Also add the following line at the top of your script.
>
> $|++;  ## Disable output buffering.
>
> let me know.

Hi Manesh:

The script is rather large and complicated - posting it in its entirety
might not be to the liking of  the list members :-).  Plus, it's two scripts
that seem to be failing like this. If you want to look at the latest
RELEASED versions of the script, please see the following URL:

    http://www.spiceisle.com/upload/talkshop/talkshop.zip


On the "output buffering" thingy, I used to have the following line near the
top of each script:

        $|=1;

This is supposed to disable output buffering.  REMOVING that line seems to
have decreased the number of times that the scripts have been failing with
the "script produced no output" error.



Ron Grabowski wrote:

>use CGI::Carp;
>
>You might also want to use the Tee module to capture the outout to
>STDOUT to a flat file during the next few days to see if Perl is
>silently failing. Or mess with @SIG.
>
>- Ron

Hi Ron:

You might have to clue me in a bit more here :-).  The problem here is that
it looks like the script is producing no output at all.  How's CGI::Carp or
trying to capture the output going to help?


Regards,
Brian Steele


_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to