FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 09-08-2010, 04:52 PM
"Alois Mahdal"
 
Default Dumping terminal contents to a file

Hi Debian users,

I wonder if there's a simple and universal way to dump output
of terminal to a file, particularly for demonstration purposes.

Most of the time when I need to do that, I either use X (or
PuTTY, when on Windows) facilities, but often it's not possible,
or it may become awkward (due to need to switch between mouse
and keyboard).

I know there are things like 'screen', but I'm looking for
the most universal solution that would work on every system.

For example, on SUSE, I can:

cat /dev/vcs > example.txt

(...though it's catted as a single line with *all* spaces up
to $COLS (meaning, e.g. that each--even empty--line would appear
as $COLS 0x020-spaces), so it needs some post-processing.)

...but that didn't work on Debian/Lenny for me.

Any suggestions?

(Extra bonus points for linux-osx-freebsd-unicode-compatible
version. :-D)

Thanks a lot,
Al.

--
Alois Mahdal ta zxcvb tod cz
...using Opera's revolutionary e-mail client: http://www.opera.com/mail/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: op.vip3s3lf53tp3f@aloism.cz.avg.com">http://lists.debian.org/op.vip3s3lf53tp3f@aloism.cz.avg.com
 
Old 09-08-2010, 05:18 PM
Frederik Kriewitz
 
Default Dumping terminal contents to a file

2010/9/8 Alois Mahdal <Alois.Mahdal@zxcvb.cz>:
> I wonder if there's *a simple *and universal way *to dump output
> of terminal to a file, particularly for demonstration purposes.

You might be interested in "script", it's part of the bsdutils package
which is probably already installed on your system.

DESCRIPTION

Script makes a typescript of everything printed on your terminal. It is
useful for students who need a hardcopy record of an interactive session
as proof of an assignment, as the typescript file can be printed out
later with lpr(1).


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=Ha2OhXpn8zEr2DFhifMMqMgpgawcZTVB5S1i=@mail .gmail.com">http://lists.debian.org/AANLkTi=Ha2OhXpn8zEr2DFhifMMqMgpgawcZTVB5S1i=@mail .gmail.com
 

Thread Tools




All times are GMT. The time now is 03:51 AM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org