Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!ames!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.sources.wanted Subject: Re: script for SYS V Message-ID: <1536@auspex.auspex.com> Date: 2 May 89 21:08:31 GMT References: <8311@chinet.chi.il.us> <12637@ihlpy.ATT.COM> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 20 >> Does anyone have source for a 'script' like program for >> SYS V? > >The easiest was is to do a "tee | sh prog | tee" with some options As long as you don't care if you can run "full-screen" programs (e.g., screen editors such as "vi" or EMACS) under it and have them work normally. The nice thing about "script" is that it uses pseudo-ttys, which most programs that care about ttys can't tell from real ttys; therefore, they act just as they do when run from a "real" terminal. Many of the times I've used "script" I've done so because I wanted to track down a bug in the display management portion of a full-screen program, so the fact that those programs work under "script" was very important. Unfortunately, vanilla S5 doesn't have pseudo-ttys (with the possible exception of S5R3.2, and the future exception of S5R4 - the latter should have "script" as a standard component), so you're stuck with pipes.