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

Home » Public Forums » archive » Re: IDL 5.4 on Solaris? Please test
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: IDL 5.4 on Solaris? Please test [message #28253 is a reply to message #28202] Tue, 27 November 2001 17:27 Go to previous message
David Shadovitz is currently offline  David Shadovitz
Messages: 19
Registered: September 2000
Junior Member
Here's the scoop:

RSI says that it (the loss of redirected output) is a known bug in IDL 5.4 and is
fixed in IDL 5.5. The fix for IDL 5.4 is to use "flush":

flush, -1 ; Flush the output buffer so that informational messages can be written
flush, -2 ; Flush the output buffer so that stderr can be written

So the code below now works. That is, the output file now does in fact contain the
program's output.

$ cat runidl
print, 'Hello world'
flush, -1
flush, -2
exit

$ idl runidl > runidl.out

$ cat runidl.out
Hello world

Thanks to all who responded.
-David

David Shadovitz wrote:

> A colleague is bringing up this issue with RSI, and we'll let you (all)
> know of any positive developments. I wonder if IDL 5.5 also kills
> the redirect.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: about contour tracing method
Next Topic: Re: Calling IDL from Fortran called by IDL

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

Current Time: Fri Oct 10 14:33:37 PDT 2025

Total time taken to generate the page: 0.16078 seconds