Re: How to save output when working in runlevel 3 (Lenny)
- From: Stephen Powell <zlinuxman@xxxxxxxxxx>
- Date: Wed, 17 Mar 2010 17:00:17 -0400 (EDT)
On Wed, 17 Mar 2010 12:03:16 -0400 (EDT), Stephen Powell wrote:
I think what you're asking is "How do I save a copy of my terminal output
when I'm not logged on via xterm (or some equivalent program)?" Is that
what you are asking? If that is what you want to do, the "script" command
works well for this purpose. For example,
# script install.log
Script started, output file is install.log
# aptitude update
...
# aptitude full-upgrade
...
# exit
Script done, output file is install.log
One thing I neglected to mention is that escape sequences and other
control codes are preserved literally in the log file. This
can lead to strange-looking output when perusing the log
file afterwards with less. To circumvent this problem, use the
-r and -f options of less. For example,
$ less -fr install.log
-r is the "raw" option and allows the escape sequences and control
codes to take effect, so that you see the colors as the were
originally. -f eliminates the message
"install.log" may be a binary file. See it anyway?
and causes less to display the file without asking for permission.
--
.''`. Stephen Powell <zlinuxman@xxxxxxxxxx>
: :' :
`. `'`
`-
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/2079979563.19797171268841796924.JavaMail.root@xxxxxxxxxxxxxxxxxxxx
--
.''`. Stephen Powell <zlinuxman@xxxxxxxxxx>
: :' :
`. `'`
`-
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/408698709.19882721268859617428.JavaMail.root@xxxxxxxxxxxxxxxxxxxx
- References:
- Re: How to save output when working in runlevel 3 (Lenny)
- From: Stephen Powell
- Re: How to save output when working in runlevel 3 (Lenny)
- Prev by Date: Re: More Xorg
- Next by Date: Re: Power on/off PCMCIA und Wifi card at runtime
- Previous by thread: Re: How to save output when working in runlevel 3 (Lenny)
- Next by thread: Re: How to save output when working in runlevel 3 (Lenny)
- Index(es):
Relevant Pages
|