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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL 5.4 on Solaris? Please test [message #28202] Mon, 26 November 2001 15:50 Go to next message
David Shadovitz is currently offline  David Shadovitz
Messages: 19
Registered: September 2000
Junior Member
Ken,

Thanks very much. 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.

Your work-around is, essentially, to write the program's output to a file. I'd
thought of doing so, but I don't want to go that route.

-David

Ken Mankoff wrote:

> Hi David,
>
> Please see my earlier post (under you previous title). This is something
> new in 5.4, and is under Sun, and Linux.
>
> I also posted my work-around (its not good enough to be a "fix").
>
> -k.
>
> On Mon, 26 Nov 2001 hradilv.nospam@yahoo.com wrote:
>
>> For me:
>> { sparc sunos unix 5.3 Nov 11 1999 } ----> WORKS
>> { sparc sunos unix 5.4 Sep 25 2000 32 64 } ---> DOES NOT
>> WORK
>>
>> BTW:
>> % uname -a
>> SunOS mr1 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-5_10
>>
>> On Mon, 26 Nov 2001 12:46:44 -0800, David Shadovitz
>> <david_shadovitz@xontech.com> wrote:
>>
>>> As noted in the "Capturing screen output" thread, a simple piece of code
>>> works for me under IDL 5.2.1 on Solaris, but fails under IDL 5.4 on the
>>> same machine. So I'd appreciate it if anyone who is running IDL 5.4 on
>>> Solaris could help me out:
>>>
>>> 1. Create a simple file containing two IDL commands:
>>> $ cat runidl
>>> print, 'Hello world'
>>> exit
>>>
>>> 2. Now run it, redirecting the output
>>> $ idl runidl > runidl.out
>>>
>>> 3. Does runidl.out now contain "Hello World", or is it empty?
>>>
>>> Thanks.
>>> -David
>>>
>>>
>>
>>
>
> --
> Ken Mankoff
> LASP://303.492.3264
> http://lasp.colorado.edu/~mankoff/
Re: IDL 5.4 on Solaris? Please test [message #28203 is a reply to message #28202] Mon, 26 November 2001 14:55 Go to previous messageGo to next message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
Hi David,

Please see my earlier post (under you previous title). This is something
new in 5.4, and is under Sun, and Linux.

I also posted my work-around (its not good enough to be a "fix").

-k.


On Mon, 26 Nov 2001 hradilv.nospam@yahoo.com wrote:

> For me:
> { sparc sunos unix 5.3 Nov 11 1999 } ----> WORKS
> { sparc sunos unix 5.4 Sep 25 2000 32 64 } ---> DOES NOT
> WORK
>
> BTW:
> % uname -a
> SunOS mr1 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-5_10
>
> On Mon, 26 Nov 2001 12:46:44 -0800, David Shadovitz
> <david_shadovitz@xontech.com> wrote:
>
>> As noted in the "Capturing screen output" thread, a simple piece of code
>> works for me under IDL 5.2.1 on Solaris, but fails under IDL 5.4 on the
>> same machine. So I'd appreciate it if anyone who is running IDL 5.4 on
>> Solaris could help me out:
>>
>> 1. Create a simple file containing two IDL commands:
>> $ cat runidl
>> print, 'Hello world'
>> exit
>>
>> 2. Now run it, redirecting the output
>> $ idl runidl > runidl.out
>>
>> 3. Does runidl.out now contain "Hello World", or is it empty?
>>
>> Thanks.
>> -David
>>
>>
>
>


--
Ken Mankoff
LASP://303.492.3264
http://lasp.colorado.edu/~mankoff/
Re: IDL 5.4 on Solaris? Please test [message #28211 is a reply to message #28203] Mon, 26 November 2001 13:08 Go to previous messageGo to next message
hradilv.nospam is currently offline  hradilv.nospam
Messages: 19
Registered: November 2001
Junior Member
For me:
{ sparc sunos unix 5.3 Nov 11 1999 } ----> WORKS
{ sparc sunos unix 5.4 Sep 25 2000 32 64 } ---> DOES NOT
WORK

BTW:
% uname -a
SunOS mr1 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-5_10

On Mon, 26 Nov 2001 12:46:44 -0800, David Shadovitz
<david_shadovitz@xontech.com> wrote:

> As noted in the "Capturing screen output" thread, a simple piece of code
> works for me under IDL 5.2.1 on Solaris, but fails under IDL 5.4 on the
> same machine. So I'd appreciate it if anyone who is running IDL 5.4 on
> Solaris could help me out:
>
> 1. Create a simple file containing two IDL commands:
> $ cat runidl
> print, 'Hello world'
> exit
>
> 2. Now run it, redirecting the output
> $ idl runidl > runidl.out
>
> 3. Does runidl.out now contain "Hello World", or is it empty?
>
> Thanks.
> -David
>
>
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 15:12:06 PDT 2025

Total time taken to generate the page: 0.00465 seconds