Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 22:19:59 -0500
From:      Michael E Mercer <mmercer@nc.rr.com>
To:        freebsd-questions@freebsd.org
Subject:   Bourne shell question: How to capture stdin and stdout from bourne shell  script.
Message-ID:  <3C9BF45E.BBEB5911@nc.rr.com>

next in thread | raw e-mail | index | archive | help
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




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