Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRalph Otowo
Python Development Techdegree Student 2,311 PointsLog irb output to file?
I'm taking the Ruby Basics courses and getting familiar with irb. Instead of using workspaces, I compiled and installed ruby locally on my Linux computer. I would like to log the Input/Output of my irb sessions to a file so I can review them later and master what I've learnt. Is this possible?
1 Answer
Charlie Jaime
17,351 PointsWell I haven't done this myself but I've read it can be done. when your ready to start recording your log use: script screen.log when your done recording use: exit your screen logs will be saved in your home folder.
if you like me answer vote me or mark me up for the best answer thank you and great coding!
Ralph Otowo
Python Development Techdegree Student 2,311 PointsRalph Otowo
Python Development Techdegree Student 2,311 PointsWow! Thank you! It also includes the date/time it started and ended at the top and bottom of the log files. Great!
kabir k
Courses Plus Student 18,036 Pointskabir k
Courses Plus Student 18,036 PointsHow can you do the same for Mac?