home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!think.com!ames!nsisrv!spso!reddy
- From: reddy@spso.gsfc.nasa.gov (Jagan Reddy)
- Subject: How to do inter process/program communication ?
- Message-ID: <reddy.724414051@spso>
- Summary: How to commumicate with a child program from parent program.
- Keywords: inter process communication.
- Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
- Nntp-Posting-Host: spso.gsfc.nasa.gov
- Organization: Goddard Space Flight Center
- Date: Tue, 15 Dec 1992 10:07:31 GMT
- Lines: 35
-
- Hi,
- I have question many of you might have encountered already. In an
- Unix environment suppose
-
- Program A statemnet 1;
- Program A statemnet 2;
- ...
- Program A statemnet x;
- call program B with its own main();
- Now program A need to find out the status ofthe
- program A.
- if (status == SUCCESS)
- contnue;
- else
- {
- error_handler();
- return(0);
- }
-
- e.g: Program A would send query statment to a pseudo server
- on the same machine. Upon the completion of query execution the application
- (program A) need to know the status and continue or abort.
-
- I think there is no such spawn command as in VMS.
- System command would not return any status.
-
- any clues.
-
- Thanks
- Jagan
-
-
-
-
-
-