From owner-freebsd-questions Tue Oct 23 5:13:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id BE59837B403 for ; Tue, 23 Oct 2001 05:13:41 -0700 (PDT) Received: from hades.hell.gr (patr530-a129.otenet.gr [212.205.215.129]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f9NCDYO18872; Tue, 23 Oct 2001 15:13:34 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f9NBmVX20779; Tue, 23 Oct 2001 14:48:31 +0300 (EEST) (envelope-from charon@labs.gr) Date: Tue, 23 Oct 2001 14:48:31 +0300 From: Giorgos Keramidas To: Matthew Blacklow Cc: freebsd-questions Subject: Re: C clue on FreeBSD again! Message-ID: <20011023144831.B20345@hades.hell.gr> References: <01102222531300.01714@i8k.babbleon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-URL: http://labs.gr/~charon/ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Oct 23, 2001 at 02:50:21PM +1000, Matthew Blacklow wrote: > Yesterday I made a post asking how to suppress the output of a program > spawned in C using the System() function. > The replies I had were very helpful and successfully supressed the output. > However they worked a little too good and they even suppressed the return > value of the program which i really need to capture. You are not giving enough details for anyone to be able to help you with the specific problem. Show us the relevant source of your program, and the exact commands that you are trying to system(). We can only guess what you are trying to do, and your `return value' is not something you did mention in the original question. Give more details, please, on: a) What exactly you are trying to do? b) How are you trying to do it? c) How does it fail to meet your requirements? -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message