From: Jeff B. <je...@ha...> - 2004-03-24 05:11:51
|
> > > And here I like seeing the progress bar' because it tells me the > > computer is doing something and isn't frozen, as well as how it's > > going. Just my two cents. > > Yeah, I like progress bars too, which is why I opted for /qb instead > of /qn like Sun documents. ... How difficult would it be to create a 2nd text file when first executing todo.pl --go for use to keep track of where we are as far as progress. I am thinking something along the lines of this (ugly pseudo-code follows): Todo.pl --go If exist c:\netinst\todo.txt copy c:\netinst\todo.txt c:\netinst\progress.txt (insert fancy perl stuff here, count the lines in progress.txt, replace the existing lines: foo bar foobar foobar2 With 1 2 3 4 Then when todo.pl removes a line from todo.txt ALSO remove a line from progress.txt. The benefit of this being that within perl we can read in the 1st line of progress.txt and the last line of progress.txt and KNOW that we are on step (5 of 20). I wish I knew more perl, at first sight this seems trivial and at least seems as through it would improve the output of todo.pl considerably :) -Jeff |