Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 04:44:32 +0100
From:      Cliff Sarginson <csfbsd@raggedclown.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: Bourne shell question: How to capture stdin and stdout from bourne shell script.
Message-ID:  <20020323034432.GA9544@raggedclown.net>
In-Reply-To: <3C9BF45E.BBEB5911@nc.rr.com>
References:  <3C9BF45E.BBEB5911@nc.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 -- <csfbsd@raggedclown.net>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020323034432.GA9544>