Date: Sat, 23 Mar 2002 10:58:40 +0000 From: Scott Mitchell <scott.mitchell@mail.com> To: mmercer@nc.rr.com, mmercer@lboard.com Cc: Cliff Sarginson <csfbsd@raggedclown.net>, freebsd-questions@FreeBSD.ORG Subject: Re: Bourne shell question: How to capture stdin and stdout from bourne shell script. Message-ID: <20020323105840.B278@fishballoon.dyndns.org> In-Reply-To: <3C9BFC12.F6C1C22C@nc.rr.com>; from mmercer@nc.rr.com on Fri, Mar 22, 2002 at 10:52:50PM -0500 References: <3C9BF45E.BBEB5911@nc.rr.com> <20020323034432.GA9544@raggedclown.net> <3C9BFC12.F6C1C22C@nc.rr.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020323105840.B278>