Re: progress reporting

[prev] [thread] [next] [Date index for 2005/05/23]

From: Philip M. Gollucci
Subject: Re: progress reporting
Date: 20:21 on 23 May 2005
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 (pgollucci@xxxxxx.xxx) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.  
     http://www.liquidityservicesinc.com

progress reporting
Arshavir Grigorian 19:21 on 23 May 2005

RE: progress reporting
Joe Breeden 19:52 on 23 May 2005

Re: progress reporting
Perrin Harkins 20:12 on 23 May 2005

Re: progress reporting
Philip M. Gollucci 20:21 on 23 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52