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
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