Re: Spawn Pipes [message #20030] |
Thu, 11 May 2000 00:00 |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
"J.D. Smith" <jdsmith@astro.cornell.edu> writes:
> Any other unix 5.3 users out there have trouble reading from file
> units spawned as pipes to a command? Try this procedure:
>
...
>
> For me, almost every run results in an IDL segfault, though occassionally it
> will work.
This was indeed reported by several people a few months ago. We don't
have 5.3 here yet, thankfully I guess. I would be interested to hear
if there was a workaround.
Craig
--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
|
|
|
Re: Spawn Pipes [message #20032 is a reply to message #20030] |
Thu, 11 May 2000 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
J.D. Smith (jdsmith@astro.cornell.edu) writes:
> Any other unix 5.3 users out there have trouble reading from file units spawned
> as pipes to a command? Try this procedure:
>
> pro simp
> cmd='ls'
> spawn,unit=un,cmd
> line=''
> while 1 do begin
> readf,un,line
> print,'GOT: ',line
> endwhile
> end
>
> For me, almost every run results in an IDL segfault, though occassionally it
> will work.
I seem to have a vague notion in the reptilian part
of my brain that this is a known IDL 5.3 Linux problem,
although a quick check of my notes doesn't turn up
anything. Was it Bob Mallozzi who was complaining
about this?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|