From: Brian Candler Date: 2007-04-11T14:46:15+09:00 Subject: Re: sending irb session to a file in windows On Wed, Apr 11, 2007 at 02:21:09PM +0900, Ben Bleything wrote: > On Wed, Apr 11, 2007, andy eggers wrote: > > Thanks, James, this is useful, although it appears that it only > > retains the history of commands I enter, without the irb output > > (return values, errors, etc). I'm surprised there's no way to send all > > of an irb session (input and output) to a file -- if I'm still missing > > something, please someone let me know. > > As far as I know (and I'm definitely open to the possibility that I'm > wrong here) that's not really possible outside of windows, either. You > can capture the output, but getting both the input and output would be > tricky. It's easy in Linux: $ script foo.txt $ irb irb> ... irb> exit $ exit $ cat foo.txt Technically that only captures the output, but since the output includes the keystrokes you typed echoed back, that's what you see on the screen.