[comp.sys.apollo] fork and I/O streams

SRFERGU%ERENJ@PUCC.PRINCETON.EDU (Scott Ferguson) (08/22/90)

I'd like to invoke a program from within a C program, either using system()
or fork(), and need to pass commands to the second process subsequently.

I have no experience with fork, and don't think that system() is capable
of passing commands from one process to another. Is there some kind of
way to use the process ID returned by fork as a stream descriptor for
fprintf (ie, 'fprintf(process_id,"%s",arg)')?

Thanks for any wisdom directed this way...
Scott Ferguson

p.s. this is using system 5.