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);

Reply via email to