Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-13-2004, 01:37 AM   #1
Registered: Sep 2003
Distribution: gentoo
Posts: 101

Rep: Reputation: 16
have apache deliver the output of perl cgi scripts immidiately


I have a cgi script which generates data and html for the user, pauses for 10 seconds, and the deletes the temporary data. The problem is, even though the html-generating portion of the script is finished by the sleep statement, apache waits until the program is totally finished executing to deliver the html, and by this time the data is gone. Is there any way to configure either the script or apache to deliver the html as soon as it sees the /html (or some other tag)?

Old 07-13-2004, 07:51 AM   #2
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
Have you tried setting autoflush? I think the syntax is:
Old 07-13-2004, 12:17 PM   #3
Registered: Sep 2003
Distribution: gentoo
Posts: 101

Original Poster
Rep: Reputation: 16
works like a charm. Thanks!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
problems in running cgi/perl scripts... raymond Linux - General 17 02-09-2010 04:06 AM
Disabling Perl/CGI Scripts totally renegadeavenger Linux - General 1 08-14-2005 07:28 PM
Of Perl CGI scripts and Sendmail Chrax Programming 2 06-06-2005 04:21 PM
learning to write Perl CGI scripts djgerbavore Programming 1 10-19-2004 12:31 PM
Running Perl/CGI scripts hso_sof Linux - Newbie 3 08-22-2003 10:26 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:17 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration