Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: CGI script calling a perl script

by Anonymous Monk
on Apr 24, 2013 at 20:15 UTC ( #1030514=note: print w/ replies, xml ) Need Help??


in reply to Re: CGI script calling a perl script
in thread CGI script calling a perl script

Is there a way to force flush the buffer?


Comment on Re^2: CGI script calling a perl script
Replies are listed 'Best First'.
Re^3: CGI script calling a perl script
by mbethke (Hermit) on Apr 24, 2013 at 20:31 UTC
    I'm not entirely sure about CGI but as it uses STDOUT underneath a
    use IO::Handle; STDOUT->autoflush(1);
    should at least get the HTML out to the web server. It won't solve the problem of the CGI script not exiting and thus not sending an EOF to the browser though, so the browser will keep showing "page loading". Maybe you can close STDOUT before exiting?
      Unfortunately the flush didn't change anything. Closing STDOUT didn't help either. Seems like a simple thing I need to do - call a perl script, let it run in the background and continue serving HTML.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2015-07-30 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls