Re: How to save output when working in runlevel 3 (Lenny)



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



Relevant Pages

  • Re: Client "daemon" for sorting e-mail via IMAP
    ... and tell him "move it to that folder there"? ... I'll clean up and post the script if anyone is interested. ... and may have trouble connecting to Gmail. ... subject of "unsubscribe". ...
    (Debian-User)
  • Re: OT: matched string of a regular expression
    ... However my sed script currently involves 6 lines (for all the ... how can I obtain the string that is matched by a regular ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: rsync backup question
    ... Script started on Thu 21 Jul 2011 06:08:03 PM EDT ... I'm not exactly sure what you want, but to use rsync as a backup tool, I think that you should use the -a option. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: What does this mean?
    ... Are you using squeeze for 64-bit architecture? ... The computer is running only a home brew data processing script ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)
  • Re: X problem (?) after fresh install on old laptop
    ... The suggestions on that page about blacklisting nouveau to disable KMS did not work. ...  Is there any command or log file output I can provide, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Trouble? ...
    (Debian-User)