473,406 Members | 2,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Output from a CGI whilst running

I've written an an anagram generator.

(The desktop version is available for download from
http://www.voidspace.org.uk/atlantibots/nanagram.html !!)

The CGI version is at :
http://www.voidspace.xennos.com/nanagram-CGI.html

Although I had it working before - I think it needs tweaking again...
:-(

Anyway - all that is more or less irrelevant (isn't most of USENET ?)
- what I need to know is - how do I force the server to allow output
from the script *before* the script has finished outputting ?

The script sometimes takes a while to finish and I'd like it to
display results as it finds them, rather than waiting until I'd find
them all..........

The closest I could find was : (which of course is for Perl)

http://www.n3t.net/Programming/

For forcing a script to use Non Parsed Headers (for Apache only), use
this at the begining
of your script.
**note - this will let the cgi display it's output while running,
rather than waiting for the
whole thing to finish.

#!/usr/bin/perl
$| = 1;
print "$ENV{'SERVER_PROTOCOL'} 200 OK\n";
print "Server: $ENV{'SERVER_SOFTWARE'}\n";
print "Content-type: text/html\n\n";
Anyone know the way to achieve the same result under python ??

Fuzzyman

http://www.voidspace.org.uk/atlantib...thonutils.html
Jul 18 '05 #1
0 1130

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Xizor | last post by:
Lets say I got something simple like: <?php echo "yo"; echo "word"; ?> I want all those echos to write to a file instead of printing to the screen
3
by: Nwsgrp | last post by:
Am using apache (2.0.48) and php (4.3.4) running on Linux. Configuring with ./configure --with-mysql --with-apxs2=/usr/local/apache2/bin/apxs Build works and no errors. Installing software and...
1
by: Kieran Benton | last post by:
Hi, I'm using AJAX.NET to do a back end lookup and would like to display a <div> constaining some text to the effect of "Please wait" whilst it is running and then hide it once it is finished. At...
5
by: Wicksy | last post by:
Hi all. I have a VB.NET app with a loop running that is continually managing a number of threads AND updating a ListView object depending on the results of the worker threads. The problem I...
4
by: gualtmacchi | last post by:
I'm processing an XML input file getting a plain text file where from M nodes I got N output lines... It's not relevant but the input file is a recordset coming from a database and the output is...
9
by: tomblower | last post by:
Access 2000 fully updated Three PCs manage data held on a server. They each have a front-end mdb file linked to tables on the server and on each PC. A problem has arisen over the following line...
4
by: Max Vit | last post by:
Here is my problem: I have an application built in Access that outputs sensitive data to a text file. I would like to encrypt this data *whilst* the file is being outputted. The encryption I was...
3
by: realmerl | last post by:
Hi All. I'm trying to transform a html document into plain text via xslt. Simple you say! (i hope) I have got it working, by using the magnificent <xsl:value-of select="."/>. This returns the...
1
by: Jesse Aldridge | last post by:
I want to put all the output from all of my python programs in one place. I've been trying to get this working for the last few days, but there are lots of annoying little details that are making...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.