Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!zaphod.mps.ohio-state.edu!mips!news.cs.indiana.edu!ux1.cso.uiuc.edu!osiris.cso.uiuc.edu!gordon From: gordon@osiris.cso.uiuc.edu (John Gordon) Newsgroups: comp.unix.questions Subject: Re: how to capture text output during program? Message-ID: <1991May24.202445.5995@ux1.cso.uiuc.edu> Date: 24 May 91 20:24:45 GMT References: <9105241726.AA16913@?lri.uwo.ca> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 15 steckner@lri.uwo.ca (Michael Steckner) writes: >I was wondering if there is a simple way for me to capture the output >to the screen generated while I run a program which also requires >periodic user input. Use of redirects is easy, if you dont also >have to answer any questions the program might having during execution. >This would be equivalent to the MSdos Cntrl Print command which automatically >captures what ever comes across the screen and dumps it to the printer. In >this unix case, i would like to save it too a file instead. >Any tips would be greatly appreciated. Check out the "script" command. John