#: 11422 S12/OS9/68000 (OSK)
21-Jul-91 17:35:20
Sb: #11418-forks and pipes
Fm: Pete Lyall 76703,4230
To: Bob van der Poel 76510,2203
Bob -
A) Is it that the children never die, _or_ that the parent (actually
GRANDPARENT) never get a death notification? If this is the case, it's because
Shell breaks the parent/child lineage, and the child would have noone to report
to if the Shell goes away.
B) Have you tried the 'popen()' call? (if 6809)... If not, that's what you
probably want. Mirrors Unix 'popen()' exactly.. i.e.:
int path;
path = popen("procs", "r"); /* fork a 'procs' command; read its output */
.....
pclose(path);
Actually - I can't remember if popen is high level (fgets, etc.) or lower
level... I think now that it's HIGH level...
In any case, there should be a code fragment around that implements popen() in
LIB 3 if you're running 68K and haven't got it in the library.
Pete
|