Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 22:52:50 -0500
From:      Michael E Mercer <mmercer@nc.rr.com>
To:        Cliff Sarginson <csfbsd@raggedclown.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Bourne shell question: How to capture stdin and stdout from bourne  shell script.
Message-ID:  <3C9BFC12.F6C1C22C@nc.rr.com>
References:  <3C9BF45E.BBEB5911@nc.rr.com> <20020323034432.GA9544@raggedclown.net>

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




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