Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: C-Execute-Command Message-ID: <11732@smoke.BRL.MIL> Date: 2 Dec 89 07:31:33 GMT References: <2615@servax0.essex.ac.uk> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <2615@servax0.essex.ac.uk> georg@essex.ac.uk writes: > Does anybody know how to call an executable file from > a c-program ? > I am using the Unix-CC copiler. The simplest method is to invoke the system() library function. If your program needs to provide input to, or capture output from, the command, then popen() should be used. If you need to do something more elaborate then you need to study UNIX system programming; Kernighan & Pike's "The UNIX Programming Environment" is recommended.