From owner-freebsd-questions Sat Mar 23 8: 4:20 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail5.nc.rr.com (fe5.southeast.rr.com [24.93.67.52]) by hub.freebsd.org (Postfix) with ESMTP id 6BCCC37B404 for ; Sat, 23 Mar 2002 08:04:14 -0800 (PST) Received: from nc.rr.com ([66.26.64.108]) by mail5.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sat, 23 Mar 2002 11:04:05 -0500 Message-ID: <3C9CA774.C290F549@nc.rr.com> Date: Sat, 23 Mar 2002 11:04:05 -0500 From: Michael E Mercer Reply-To: mmercer@nc.rr.com X-Mailer: Mozilla 4.75 [en] (X11; U; FreeBSD 4.5-STABLE i386) X-Accept-Language: en MIME-Version: 1.0 To: Scott Mitchell Cc: mmercer@lboard.com, Cliff Sarginson , freebsd-questions@FreeBSD.ORG Subject: A Solution: Re: Bourne shell question: How to capture stdin and stdout from bourne shell script. References: <3C9BF45E.BBEB5911@nc.rr.com> <20020323034432.GA9544@raggedclown.net> <3C9BFC12.F6C1C22C@nc.rr.com> <20020323105840.B278@fishballoon.dyndns.org> 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 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