From owner-freebsd-questions Sun Oct 21 23:51:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id B0C6837B405 for ; Sun, 21 Oct 2001 23:51:31 -0700 (PDT) Received: from [195.11.243.26] (helo=Debug) by post.mail.nl.demon.net with smtp (Exim 3.22 #1) id 15vYvp-000FQh-00; Mon, 22 Oct 2001 06:51:29 +0000 To: , From: Cliff Sarginson Subject: Re: C clue on FreeBSD Date: Mon, 22 Oct 2001 06:51:29 GMT X-Mailer: www.webmail.nl.demon.net X-Sender: postmaster@btvs.demon.nl X-Originating-IP: 192.250.25.251 Message-Id: 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 > Hi all, > I am running FreeBSD and am trying to learn C. I have a program at the > moment which using C's "system" function launches a FreeBSD application. The > problem is that it outputs to the screen all the output of the spawned > process. I need to know how to supress the output of this process. I have > looked through many C programming books and on the web and cant seem to find > what i am looking for. > system("program >/dev/null"); -- Regards Cliff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message