From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aba62ded60e0d703 X-Google-Attributes: gid103376,public From: John McCabe Subject: Re: Spawning a subprocess and communicating with it. Date: 1998/10/05 Message-ID: <6va29h$up6@gcsin3.geccs.gecm.com>#1/1 X-Deja-AN: 398933881 Content-Transfer-Encoding: 7bit References: Content-Type: text/plain; charset=us-ascii Organization: Avatar Computer Consultants Limited Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-10-05T00:00:00+00:00 List-Id: "Condic, Marin D." wrote: Marin, In addition to the other replies you have had on this subject, fro the point of view of communicating between the processes, I would suggest using POSIX Message Queues. It would probably be worthwhile getting hold of the POSIX Ada Bindings known as Florist. These can be found by going through HBAP or AdaIC and will provide much (if not all) of the functionality you need. In particular, Since you're using Solaris 2.5.1 (SunOS 5.5.1) and GNAT, it is quite likely that you will be able to build Florist without any problems. Good luck. > I'm looking for an example of how I might accomplish the following > using SunOS 5.5.1 Unix and GNAT 3.9 (or later): > > I want to write an Ada program that can start up another Ada > program as a subprocess, coprocess or whatever is the common Unix > paradigm. (I just need it running as a separate, stand-alone > executable image whose execution need go on no longer than that of > the parent program that initiated it.) When the subprocess is up > and running, I need to trade messages back and forth (character > strings are sufficient) between the two processes. > > I presume this is all doable through various Unix system calls, > but unfortunately, we don't seem to have anyone around here who is > much of an expert on Unix calls, or how to interface to them via > Ada or even any manuals one might peruse on the subject. If > someone could send me a small example of how this is done, I would > be grateful. Thanks. -- Best Regards John McCabe ===================================================================== Not necessarily my company or service providers opinions. =====================================================================