Arshavir Grigorian wrote:

Hi,

I have some code that takes a long time to execute. What I would like to do is to display several real time status messages on the user's browser as the work is being done (Started doing A ... Done, Started doing B ... Done, etc). Then once the work is done, I would like to wipe the status messages and display some results.

I am thinking that I need is something similar to internal redirects, but I am not sure what. Thanks for any ideas/pointers.


You might try something similiar to webmin with nph scripts we use nph and local $| in house to do this.

also try using

local $| = 1

HANDLE->autoflush(EXPR)
$OUTPUT_AUTOFLUSH
      $|      If set to nonzero, forces a flush right away and after every
              write or print on the currently selected output channel.
              Default is 0 (regardless of whether the channel is really
buffered by the system or not; $| tells you only whether you've asked Perl explicitly to flush after each write). STDOUT will
              typically be line buffered if output is to the terminal and
block buffered otherwise. Setting this variable is useful pri-
              marily when you are outputting to a pipe or socket, such as
              when you are running a Perl program under rsh and want to see
              the output as it's happening.  This has no effect on input
              buffering.  See "getc" in perlfunc for that.  (Mnemonic: when
              you want your pipes to be piping hot.)


--
END ---------------------------------------------------------
   What doesn't kill us, can only make us stronger.
              Nothing is impossible.
                                
Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc. http://www.liquidityservicesinc.com

Reply via email to