help-octave
[Top][All Lists]
Advanced

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

Re: Invoke an octave session via pipe


From: Michael Goffioul
Subject: Re: Invoke an octave session via pipe
Date: Thu, 7 May 2009 21:18:09 +0100

Octave won't give you a prompt by default when operating
over pipes. To force interactive behavior, use the -i and/or
--line-editing command flags.

Michael.


On Thu, May 7, 2009 at 8:57 PM, Qianqian Fang <address@hidden> wrote:
> Jaroslav Hajek wrote:
>> When writing to a pipe you typically need to flush it afterwards to
>> ensure the other process actually gets the data. It seems your code
>> doesn't do it, so unless FreePascal flushes automatically, which I
>> doubt, I would try that. No idea of the syntax in Pascal, but you'll
>> probably figure out.
>>
>> regards
>>
>>
> hi Jaroslav
>
> thank you for the reply. The TProcess class in free pascal does not have
> "flush" function, which I believe it does it internally. Running this on
> other programs worked fine.
>
> What makes me curious is why my stdout reading did not give me the
> octave prompt, i.e. "octave:1>"? looks like once octave get started,
> it will start something else, which I can not access its stdout via
> octave's stdout.
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>


reply via email to

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