octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wait_for_file ??


From: Michael Godfrey
Subject: Re: wait_for_file ??
Date: Thu, 09 Sep 2010 11:22:43 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100907 Fedora/3.1.3-1.fc13 Thunderbird/3.1.3

On 09/09/2010 11:01 AM, John W. Eaton wrote:
Was that the original problem, that a sequence of commands in Octave
like
  system ("gnuplot ...");  ## generate eps file
  system ("gs ...");       ## convert eps file to some other format

was failing because the output file from the first command was not
available when the second command was executed? 

The problem was (is) that the code in __fltk_print__.m uses a call to
drawnow() to cause fltk to write the *.eps file.  But, as Shai says,
fltk  returns control immediately, but only executes the code that writes the eps
file "sometime later",   He had not found a way to make this synchronous.
My test example showed that the fltk write of the eps file only happened
after the print() command had exited back to the command line.

But, it appears from the recent thread entries between him and Ben that
your idea will work.

Michael


reply via email to

[Prev in Thread] Current Thread [Next in Thread]