You could also have a look at This code snippit node which has a function to do it for you. The orriginal one had a couple of bugs, however simon.proctor's rewrite definatly works as I have used it twice now :-)
---If it doesn't fit use a bigger hammer
Comment on Re: progress bar while perl prog is running