[nSLUG] Re:..shell command output AND input to text file [was] got one mouse working -

Dop Ganger nslug at fop.ns.ca
Wed Aug 16 14:35:58 ADT 2006

On Tue, 15 Aug 2006, Robert Ashley wrote:

> Is there a way to capture the output text AND its input shell command
> into a text file?

script filename.txt

This will fire off a shell and write everything you do to filename.txt. 
Hit ctrl-d to quit once you're done. Note that this writes everything 
including control codes; look at scriptreplay(1) to replay it back if you 
can't make sense of it in more/less.

Cheers... Dop.


More information about the nSLUG mailing list