comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: flushing stdout
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: flushing stdout [message #42335] Mon, 31 January 2005 18:26
Robert Barnett is currently offline  Robert Barnett
Messages: 70
Registered: May 2004
Member
Ben,

My experience is that piping idl to various places is best avoided.

Have you ever used emacs plugin IDLWAVE? This is a quality piece of
software which is 100 times better than the idlde. I sometimes notice
that doesn't give me some idl output immeadiently because something is
buffered somewhere.

I've played with piping the idl prompt over TCP sockets. I wrapped idl
in pythons 'open2' bi-directional pipe and sent it over a TCP/IP socket.
I did a neat trick to allow myself to re-connect to an existing IDL
session a bit like you would with the unix 'screen' command. Guess
what? I get the occasional buffering there too.

If you want immeadiate, unbuffered, RSI supported input/output from IDL
then I recommend printing to a UNIX socket or TCP/IP socket.

Robbie

Benjamin Hornberger wrote:

> Hi all,
>
> did anybody notice that IDL sometimes doesn't seem to flush stdout (the
> output log) correctly? I am sending print commands of which I know that
> they should be appearing in constant time intervals, but actually they
> appear in chunks of three or so. Even "flush, -1" doesn't help.
>
> This is very annoying when diagnosing errors. Any hints or clues?
>
> Thanks,
> Benjamin


--

nrb@
Robbie Barnett
imag
Research Assistant
wsahs
Nuclear Medicine & Ultrasound
nsw
Westmead Hospital
gov
Sydney Australia
au
+61 2 9845 7223
[Message index]
 
Read Message
Previous Topic: Convert ascii data to binary
Next Topic: Aggregating an array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 07:18:54 PDT 2025

Total time taken to generate the page: 0.79794 seconds