From help-octave-request at bevo dot che dot wisc dot edu Mon Jun 25 22:55:52 2001 Subject: Re: progress meter for long operations From: "Jonathan C. Webster" To: Aaron Brick CC: help-octave at bevo dot che dot wisc dot edu Date: Mon, 25 Jun 2001 23:57:50 -0400 Aaron Brick wrote: > hello all, > > does anyone have a good method for announcing progress on long operations? i > tried putting a printf in a for loop, but it didn't print a thing out until > it was done, Use unbuffered writes to a log file and then watch that. (tail -f stuff.log ) I use code like the following, where FID is the filehandel of your log file. str1 = sprintf("Blah Blah %d %f \n", var1, var2 ); fputs(FID,str1); Jonathan ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------