Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!haven!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.unix.questions
Subject: Re: easy, basic, question...
Message-ID: <10788@smoke.BRL.MIL>
Date: 19 Aug 89 06:40:34 GMT
References: <11072@neon.Stanford.EDU>
Reply-To: gwyn@brl.arpa (Doug Gwyn)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 12

In article <11072@neon.Stanford.EDU> wolfe@neon.stanford.edu (Michael R. Wolfe) writes:
-... That is, I'm being forced to do multiple strcat's to form a
-string to send to system.  Is there a way around this?

Yes:  Use a single sprintf() into a character array of sufficnet size,
then call system with that array name as its argument.

-In addition, is there any way to find the result of a unix command
-called from C without having to send it to a file and then open
-the file.

See popen(3S) in your UNIX Programmer's Reference Manual.