comp.lang.ada
 help / color / mirror / Atom feed
From: Markus Kuhn <Markus.Kuhn@cl.cam.ac.uk>
Subject: Re: [Q] Operating System Command Interface
Date: 1998/05/05
Date: 1998-05-05T00:00:00+00:00	[thread overview]
Message-ID: <354F1D90.39080B2D@cl.cam.ac.uk> (raw)
In-Reply-To: 6ims5j$1vo@gcsin3.geccs.gecm.com


John McCabe wrote:
> Am I right in thinking that, as standard, Ada has no direct perating
> system command interface akin to the C "System" call?

Look into the IEEE POSIX.5 standard, the Ada version of the Unix API.
There you'll find procedures such as

   procedure Start_Process
     (Child : out POSIX.Process_Identification.Process_ID;
      Pathname : in POSIX.Pathname;
      Template : in Process_Template;
      Arg_List : in POSIX.POSIX_String_List
               := POSIX.Empty_String_List);

in package POSIX.Process_Primitives that probably do what you want
(i.e. allow you to call "/bin/sh", etc.).

An implementation is on

  http://www.cs.fsu.edu/~baker/florist.html

Markus

-- 
Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK
email: mkuhn at acm.org,  home page: <http://www.cl.cam.ac.uk/~mgk25/>




  parent reply	other threads:[~1998-05-05  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-05  0:00 [Q] Operating System Command Interface John McCabe
1998-05-05  0:00 ` Stanley R. Allen
1998-05-05  0:00   ` John McCabe
1998-05-05  0:00   ` Andi Kleen
1998-05-06  0:00     ` Markus Kuhn
1998-05-05  0:00 ` Do-While Jones
1998-05-08  0:00   ` Nick Roberts
1998-05-05  0:00 ` Markus Kuhn [this message]
1998-05-05  0:00   ` David C. Hoos, Sr.
1998-05-05  0:00 ` David C. Hoos, Sr.
1998-05-05  0:00   ` John McCabe
1998-05-05  0:00     ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox