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

Home » Public Forums » archive » need help with spawn and readf
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
need help with spawn and readf [message #19768] Fri, 14 April 2000 00:00
Ramji Digumarthi is currently offline  Ramji Digumarthi
Messages: 5
Registered: April 2000
Junior Member
Hi folks,
I am looking for some examples of using spawn and readf with IDL and C.
I am currently using IDL 5.0 and 5.1 versions. I can read and write
using binary readu(IDL) and write(C).
I would like to use readf(IDL) and fprinf(C).
I spawn a child process and in the child process.
IDL code:
spawn,program, unit=prg
readf,unit=prg,long(int_var)
print,int_var

C code:
int int_var;
fprintf(stdout,"%d",int_var)

this does not work and the IDL program hangs...


if modify the C-code fprintf to fprintf(stdout,"%d\n",int_var)
then I get
READF : input conversion error


any comments or any examples?

thanks
ramji digumarthi
ramji.digumarthi@lmco.com
650-354-5661
[Message index]
 
Read Message
Previous Topic: Re: need help with spawn and readf
Next Topic: More For Loops

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

Current Time: Fri Oct 10 13:03:15 PDT 2025

Total time taken to generate the page: 0.96122 seconds