Invoke an octave session via pipe

Olaf Till olaf.till at uni-jena.de
Fri May 8 01:48:09 CDT 2009


On Thu, May 07, 2009 at 07:16:28PM -0400, Qianqian Fang wrote:
> thank you John, and also Michael's reply for using the -i option.
> 
> I tried -i and my initial pipe read returned the "octave:1>" prompt,
> however, sending commands via my pascal function still
> failed to give me any more output to read.

After you send the command to Octave, it might be necessary to send
the additional command

fflush (stdout);

which should flush the pipe from Octave to your pascal program since
Octaves stdout is probably redirected to that pipe.

Olaf


More information about the Help-octave mailing list