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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: request timing out on Perl Web
by flexvault (Monsignor) on May 30, 2014 at 15:18 UTC | |
by jpcardoso (Initiate) on May 30, 2014 at 16:07 UTC | |
by flexvault (Monsignor) on May 30, 2014 at 17:46 UTC | |
Re: request timing out on Perl Web
by choroba (Cardinal) on May 30, 2014 at 15:45 UTC | |
by LanX (Saint) on May 30, 2014 at 16:09 UTC | |
by jpcardoso (Initiate) on May 30, 2014 at 16:15 UTC | |
Re: request timing out on Perl Web
by taint (Chaplain) on May 30, 2014 at 17:14 UTC | |
Re: request timing out on Perl Web
by Anonymous Monk on May 31, 2014 at 00:22 UTC | |
Re: request timing out on Perl Web
by sundialsvc4 (Abbot) on May 31, 2014 at 01:47 UTC | |
Re: request timing out on Perl Web
by Laurent_R (Canon) on May 30, 2014 at 17:10 UTC |
Back to
Seekers of Perl Wisdom