Re: turn off buffering

by bobmin(at)nidlink.com

 Date:  Wed, 28 Feb 2001 16:19:11 -0800
 To:  CHarris(at)checkfree.com,
hwg-servers(at)hwg.org
 In-Reply-To:  ckfr
  todo: View Thread, Original
Try adding a nocache pragma to your output.

< META HTTP-EQUIV = "Pragma" CONTENT="no-cache" >

 Like the one above.

Reference;

http://developer.netscape.com:80/support/faqs/advhtml/advhtml.html#
G0007

On 28 Feb 2001, at 16:47, CHarris(at)checkfree.com wrote:

> greetings.  i have a perl CGI that is executing a tail command on a log
> file, and i want it to start displaying the output right away.  i have the
> environment variable #|=1 set, and the text type set to text/plain.  it's
> still not working.  any ideas on how to accomplish this?
> 
> here's the script:
> 
> #!/usr/contrib/bin/perl -w
> #tailsyslog.cgi
> #|=1
> 
> print "Content-type: text/plain\n\n";
> 
> open (IX,'tail -f /var/adm/syslog/syslog.log |');
> while (<IX>)
>  {
>     chop $_;
>     print "$_\n";
>  }
> close (IX);
> 
> environment:  Apache Server 1.3       Perl 4.0
> 
> thanks in advance,
> 
> 
> Chris Harris, MCSE
> Staff Technical Analyst
> Transmissions Implementations
> 512-377-6170
> 


^------------------------------------------------------------------------^
| Bob Minnick, President, Northern Webs                                  |
| 159 Trapps Drive                                                       |
| Sagle, ID 83860                                                        |
| 208.265.0474                                                           |
| http://www.northernwebs.com (homepage)                                 |
| http://www.northernwebs.com/set/setsimjr.html (meta medic)             |
^------------------------------------------------------------------------^

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.