http://qs1969.pair.com?node_id=1088003

jpcardoso has asked for the wisdom of the Perl Monks concerning the following question:

Hi guys,

I'm not sure if this is a Perl question, but I'm developing a website in Perl and it contains a line that calls for a grep in a bzcat of a .bz2 file.

It's something like this:
my $var = `bzcat $path/file.bz2 | grep -i word`; print "$var";

The issue is that when I load the perl in the web browser, the page stops loading before the bzcat ends. The bzcat is taking around 5 minutes to complete but the browser "cuts" the connection and the page does not load the content.

Running the perl in the terminal it prints the content without problems.

My question is: Is there a way to increase the timeout of the bzcat process running on web?

Thanks in advance.