script mylog.txt
irb
>> do stuff
>> ^D
exit

-- 
Posted via http://www.ruby-forum.com/.