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

Home » Public Forums » archive » Capturing output from SPAWN
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: Capturing output [message #31283 is a reply to message #11565] Mon, 24 June 2002 12:48 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Ian Dean" <Ian.d.dean@baesystems.com> writes:
> Hi,
> A long shot, as I'm using IDL 5.4 under OpenVMS 7.1.
>
> Is there a way of running a sub-process (perhaps using SPAWN) and capture
> its output as it happens to a text widget. I am aware I could use the RESULT
> keyword, but that is only available when the SPAWNed process completes.
>
> It may be possible to use a CALL_EXTERNAL using mailboxes to communicate,
> but this seems a bit heavy handed.
>
> I can always supply more info if required.

The only way to do this directly appears to be with the UNIT keyword,
which is not available from VMS.

However, as Reimar says, perhaps you can write the data to a file. If
you SPAWN it using NOWAIT, then your IDL process regains control
immediately while the job runs in parallel. Then your IDL process can
periodically check the temporary file for more output and load it into
the widget as needed.

Craig
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: "Program Code area full" error message
Next Topic: Re: axis is too thin? - test.ps (0/1)

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

Current Time: Thu Oct 16 20:47:08 PDT 2025

Total time taken to generate the page: 0.01820 seconds