From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 21 Nov 91 14:45:47 GMT From: dd@sei.cmu.edu (Dennis Doubleday) Subject: Re: Verdix-to-shell problem Message-ID: <35504@as0c.sei.cmu.edu> List-Id: In article <1991Nov21.035339.21527nbh@netcom.COM>, nbh@netcom.COM (N.B. Hedd) w rites: |> I am trying to make a call to a UNIX shell script from within an Ada |> program, have the script terminate, and return to the program. I am |> able to call the system via unix_procs.execute, I think, but my program |> never seems to return to the foreground. Can somebody with Verdix experience |> on a Sun shed some light on this? |> |> Ada ---> shell script (with arguments) ---> return to Ada I believe what you want to do is use the fork() operating system to call to create another system process, then exec() the shell script in the fork'ed process. Since the shell script will be running in a child process of the process executing your Ada program, you then use the wait() operation to wait for the termination of the child process before proceeding. Dennis Doubleday (dd@sei.cmu.edu) Software Engineering Institute Carnegie Mellon University Pittsburgh, PA 15213 (412)268-5873