From owner-freebsd-questions Fri Mar 22 19:20:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from Mail6.nc.rr.com (fe6.southeast.rr.com [24.93.67.53]) by hub.freebsd.org (Postfix) with ESMTP id 2AB4237B404 for ; Fri, 22 Mar 2002 19:20:12 -0800 (PST) Received: from nc.rr.com ([66.26.64.108]) by Mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Fri, 22 Mar 2002 22:20:11 -0500 Message-ID: <3C9BF45E.BBEB5911@nc.rr.com> Date: Fri, 22 Mar 2002 22:19:59 -0500 From: Michael E Mercer Reply-To: mmercer@nc.rr.com, mmercer@lboard.com X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.5-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Bourne shell question: How to capture stdin and stdout from bourne shell script. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Peoples, How can you use Bourne shell to capture all the stdout and stdin of a shell script? I have a script that asks a number of questions, and I want to capture the questions and answers in a file called results.log. How do I go about it? It would really be nice if this could be done entirely within the script without user intervention other than answering the questions. Thanks Michael Mercer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message