ed9a
![]() |
|
|
|
|
|||||||
| Howtos & FAQs Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
script(1) can be used to capture console session output. This is useful for later reference, like looking for what caused a port to fail to build.
Example: Code:
# script /tmp/session.txt # cd /usr/ports/www/links # make ... # exit Script done, output file is /tmp/session.txt |
| The Following 5 Users Say Thank You to wblock@ For This Useful Post: | ||
benpptung (November 9th, 2010), Caliante (October 10th, 2010), Nat_RH (May 23rd, 2011), sistematico (June 19th, 2012), UNIXgod (August 30th, 2010) | ||
|
#2
|
|||
|
|||
|
Excellent, this helped me already
![]() Thank you
|
|
#3
|
|||
|
|||
|
One can also use tee or sysutils/Tee similarly
Code:
man tee && man Tee Last edited by DutchDaemon; October 11th, 2010 at 02:01. Reason: stop hitting [enter] .. |
| The Following User Says Thank You to jb_fvwm2 For This Useful Post: | ||
Caliante (October 11th, 2010) | ||
|
#4
|
||||
|
||||
|
Quote:
|
|
#5
|
||||
|
||||
|
As a minor note, the rprompt option in tcsh screws up any output from script(1), so be sure to disable this.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
#6
|
||||
|
||||
|
Nah, only for those who view typescript files as plain text in dumb terminals. less(1) have -r and -R options to render terminal control sequences.
One can also record session with timestamps using -r option (cf. script(1) on NetBSD). It can later be played using -p option, e.g. to observe how user interacted with ncurses application such (nvi(1), tcsh(1)'s tab-completion, etc.). A few years back there were plenty of recorded howtos on youterm.com, mostly for radare, that could be viewed either via telnet or java applet. The feature is ported to FreeBSD in bin/114465. Last edited by eye; December 20th, 2010 at 08:58. Reason: mentioned affected PR |
| The Following User Says Thank You to eye For This Useful Post: | ||
Carpetsmoker (November 17th, 2010) | ||
![]() |
| Tags |
| capture, console, error, log, script |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Screen video capture/grabbing | smooky | Multimedia | 7 | May 11th, 2010 11:59 |
| Problems booting nanobsd image - no output to serial console | mix_room | Installing & Upgrading | 2 | April 18th, 2010 17:45 |
| problems booting freebsd installation on net5501 - no real output in console | rusma | Installing & Upgrading | 5 | February 23rd, 2010 14:36 |
| Capture screen as video | honk | Multimedia | 2 | November 12th, 2009 09:05 |
| Kismet, no capture sources? | raadu | Web & Network Services | 2 | February 16th, 2009 21:11 |