Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2002 11:04:05 -0500
From:      Michael E Mercer <mmercer@nc.rr.com>
To:        Scott Mitchell <scott.mitchell@mail.com>
Cc:        mmercer@lboard.com, Cliff Sarginson <csfbsd@raggedclown.net>, freebsd-questions@FreeBSD.ORG
Subject:   A Solution: Re: Bourne shell question: How to capture stdin and stdout  from bourne shell script.
Message-ID:  <3C9CA774.C290F549@nc.rr.com>
References:  <3C9BF45E.BBEB5911@nc.rr.com> <20020323034432.GA9544@raggedclown.net> <3C9BFC12.F6C1C22C@nc.rr.com> <20020323105840.B278@fishballoon.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I have set the SHELL variable to the name of the script I want to capture.
Then I run the script command and it runs the "SHELL".

This seems to be working for the moment. Does anyone know why I should
not use script in this way?

later
MeM


Scott Mitchell wrote:

> On Fri, Mar 22, 2002 at 10:52:50PM -0500, Michael E Mercer wrote:
> > 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
> >
>
> It looks like the Solaris /bin/sh knows about the
>
>         exec < /some/file > /some/other/file
>
> trick.  Just use this in your script, and all subsequent input/output will
> use the specified files.
>
> HTH,
>
>         Scott
>
> --
> ===========================================================================
> Scott Mitchell          | PGP Key ID | "Eagles may soar, but weasels
> Cambridge, England      | 0x54B171B9 |  don't get sucked into jet engines"
> scott.mitchell@mail.com | 0xAA775B8B |      -- Anon
>
> 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?3C9CA774.C290F549>