> I am trying to have the results of a ping displayed in the browser window
in
> realtime. I read somewhere that embperl buffers the page before sending
it.
> I ahve tried to disable this by setting EMBPERL_OPTIONS to include the
> optEarlyHttpHeader, I also tried to use optRedirectStdout. Neither seemed
to
> work. I get the page displayed after everything the ping is done. Any
ideas
> on what I am doing wrong? Sample is below.
>
>         open( PING, "/usr/sbin/ping -I 1 $fdat{ ip } 100 5|" ) ;
>         while ( <PING> ) {
>                 print OUT "$_<BR>\n";
>         }
>         close(PING);
>

In 1.3.x set optEarlyHttpHeader in EMBPERL_OPTIONS and dbgFlushOutput in
EMBPERL_DEBUG (the second one could also be set inside the page or turned on
and off during the page, using $dbgFlushOutput=1)

2.0 currently doesn't support this, because it works totaly different
internaly. I am currently thinking about how to get this working with 2.0.
This will be part of one of the next releases

Gerald

P.S. $| has _no_ effect when printing to OUT. (dbgFlushOutput does the same
for Embperls output stream)

-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to