in reply to Script heartbeat to show it is still running
You may want to alter the PROGRESS_CHUNK_SIZE value, depending on how long 1 loop iteration takes.use constant PROGRESS_CHUNK_SIZE => 1000; my $counter = 0; while ( ... ) { # loop that takes a long time to run ... $counter++; if ( !($counter % PROGRESS_CHUNK_SIZE) ) { print "."; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Script heartbeat to show it is still running
by sauoq (Abbot) on Jul 04, 2003 at 01:01 UTC | |
|
Re: Re: Script heartbeat to show it is still running
by Anonymous Monk on Jul 07, 2003 at 11:46 UTC |