in reply to How to stream output to html page?
#!/usr/bin/perl use CGI; $| = 1; my $q = new CGI; print $q->header(-type => 'text/html'); print "<pre>\n"; print "Running date:\n"; system("date"); print "sleeping...\n"; sleep(10); print "Running ls:\n"; system("ls"); print "</pre>\n";
Most http servers now will stream output from CGI scripts to clients. That wasn't always the case in the early years.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to stream output to html page?
by stickman (Acolyte) on Mar 01, 2008 at 19:49 UTC | |
by kyle (Abbot) on Mar 01, 2008 at 19:56 UTC | |
by stickman (Acolyte) on Mar 01, 2008 at 20:36 UTC |