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,e76285581f537e18 X-Google-Attributes: gid103376,public From: Markus Wahl Subject: Re: Pipe UNIX-commands Date: 1996/08/23 Message-ID: #1/1 X-Deja-AN: 176309344 references: <321B21B2.1F32@cpmx.saic.com> content-type: TEXT/PLAIN; charset=US-ASCII organization: Chalmers University of Technology mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-08-23T00:00:00+00:00 List-Id: On Wed, 21 Aug 1996, Larry Hazel wrote: > > I'd like to know how I can make unix-commands from inside my ada-program. > > Eg: The program shall pipe out the command 'ls' and then make something > > within the program with the output of 'ls'. Am I clear? > I don't remember the details of the unix system call, I think it may be > 'system' (try 'man system' to check it out). I no longer have access to > unix. Anyway, you can import this C function and run any command from > your Ada program that you can run from the shell prompt and can include > I/O redirection. Pitty I can't write C. Maybe someone else knows a solution suitable for me. Thank you anyway. /Markus The government can take everything but your paranoia.