From owner-freebsd-questions Fri Mar 22 19:52:55 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 AFD2937B400 for ; Fri, 22 Mar 2002 19:52:51 -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:52:51 -0500 Message-ID: <3C9BFC12.F6C1C22C@nc.rr.com> Date: Fri, 22 Mar 2002 22:52:50 -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: Cliff Sarginson Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Bourne shell question: How to capture stdin and stdout from bourne shell script. References: <3C9BF45E.BBEB5911@nc.rr.com> <20020323034432.GA9544@raggedclown.net> 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 Forgot to mention, I need this for solaris 8 platform. I already read the man page for script and it does not look like it supports the 'command' option that freebsd does. Oh well. Thanks Michael Cliff Sarginson wrote: > On Fri, Mar 22, 2002 at 10:19:59PM -0500, Michael E Mercer wrote: > > 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 > > script > > try it out :) > it records everything > in a file name of your choosing > type "man script" for details > > -- > Regards > Cliff Sarginson -- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message