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

Home » Public Forums » archive » Re: Problems with spawn on Linux
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: Problems with spawn on Linux [message #18296 is a reply to message #18294] Thu, 16 December 1999 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
ftjec@uaf.edu writes:
> Hello,
> I am having problems with the spawn command on Linux. I am using the
> unit parameter to spawn to obtain a pipe to the child process and use
> this pipe to moniter the child's progress. The code I have works fine
> on the sun I coded it for originally -- but on linux I get very
> unpredictable results. Sometimes the process is spawned, yet no output
> is generated, sometimes it works fine, and sometimes it crashes idl
> completely with a "bus error" message.
>
> Does anyone know of a solution to this problem?
>
> Also any advice on the general state of idl on Linux would be greatly
> apprecated.

I can't reproduce your problem either:

RedHat 6.1
IDL> print, !version
{ x86 linux unix 5.2.1 Jun 4 1999}

What you describe is very strange.

However, I did discover that the ON_IOERROR procedure interferes with
reads from SPAWNed pipes. In particular, ON_IOERROR occasionally
causes the input buffer to be lost (along with your data of course).
Usually this can be solved by moving ON_IOERROR outside of your read
loop, which in your case you have done already. Perhaps you could try
CATCH just to see if anything different happens.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Spatial normalisation
Next Topic: Widget Frame Attributes on Linux

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

Current Time: Fri Oct 10 10:21:52 PDT 2025

Total time taken to generate the page: 1.67971 seconds