home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18377 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.2 KB  |  49 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!think.com!ames!nsisrv!spso!reddy
  3. From: reddy@spso.gsfc.nasa.gov (Jagan Reddy)
  4. Subject: How to do inter process/program communication ?
  5. Message-ID: <reddy.724414051@spso>
  6. Summary: How to commumicate with a child program from parent program.
  7. Keywords: inter process communication.
  8. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  9. Nntp-Posting-Host: spso.gsfc.nasa.gov
  10. Organization: Goddard Space Flight Center
  11. Date: Tue, 15 Dec 1992 10:07:31 GMT
  12. Lines: 35
  13.  
  14. Hi,
  15.     I have question many of you might have encountered already. In an
  16. Unix environment suppose
  17.  
  18.             Program A statemnet 1;
  19.             Program A statemnet 2;
  20.             ...
  21.             Program A statemnet x;
  22.             call program B with its own main();
  23.             Now program A need to find out the status ofthe
  24.             program A.
  25.             if (status == SUCCESS)
  26.                 contnue;
  27.             else
  28.             {
  29.                 error_handler();
  30.                 return(0);
  31.             }
  32.  
  33.         e.g: Program A would send query statment to a pseudo server
  34. on the same machine. Upon the completion of query execution the application
  35. (program A) need to know the status and continue or abort.
  36.  
  37.         I think there is no such spawn command as in VMS.
  38.         System command would not return any status.
  39.  
  40. any clues.
  41.  
  42. Thanks 
  43. Jagan
  44.  
  45.             
  46.  
  47.  
  48.  
  49.