geekvenue.net

Welcome to Chucktips Hardware HELP WITH DEAD OS Installing FreeBSD Miscellaneous
 faq
 search
 add article
 cool-stuff
 how-to
 main
 tips


TIP: Try the script command
Miscellaneous Posted by Jason on Friday December 28, @11:55AM
from the dept.
The script command will log all console output to a specified file.

I have found this to be a very useful tool for debugging ports installations. If a port fails, often times the reported problem scrolls off the screen. Also, some ports will display special compilation flags that scroll by very quickly before you can read them.

To use the script command, simply type:
script {output_filename}
All console output will be logged to that file. To stop logging, simply type:
exit

Example:
cd /usr/ports/shells/bash2
script bash.txt
make install clean
exit
cat bash.txt

To learn about console scrolling, please read this Chucktips post TIP: You can scroll your console screens.

To learn more about the script command, try the man page:
man script


<  |  >

 

Related Links
  • Articles on Miscellaneous
  • Also by Jason
  • Contact author

    Lilliput Mini USB Computer Monitor

    If you have ever wanted to learn about Cisco Routers, check out my new book "Cisco Routers for the Small Business" - it's Cisco CLI for the Regular Guy!

  • Sponsors

    The Fine Print: The following comments are owned by whoever posted them.
    ( Add a Reply )

    "You never know how many friends you have until you own a Condo on the beach." -- Jason's Postulate

    Powered by Zope  Powered by Apache  Squishdot Powered
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©2001 Jason Neumann.
    [ main | post article | search ]