how to keep output of apt-get in a file ?

1999-04-30 Thread Khalid EZZARAOUI
did someone know if apt-get keep it's output somewhere, or the way to do
it ?
because the long list of thing to do during the install ?

I try :
apt-get upgrade 12 apt-get_output.txt
but I don't see what is wrong.

thanks.


Re: how to keep output of apt-get in a file ?

1999-04-30 Thread Mitch Blevins
In foo.debian-user, you wrote:
 did someone know if apt-get keep it's output somewhere, or the way to do
 it ?
 because the long list of thing to do during the install ?
 
 I try :
 apt-get upgrade 12 apt-get_output.txt
 but I don't see what is wrong.
 
 thanks.

Try:

   apt-get upgrade apt-get_output.txt 21


-Mitch


Re: how to keep output of apt-get in a file ?

1999-04-30 Thread Peter Weiss
 On Fri, 30 Apr 1999 13:48:49 +0200, Khalid EZZARAOUI [EMAIL PROTECTED] 
 said:

Khalid did someone know if apt-get keep it's output somewhere, or the way to do
Khalid it ?
Khalid because the long list of thing to do during the install ?

Khalid I try :
Khalid apt-get upgrade 12 apt-get_output.txt
Khalid but I don't see what is wrong.

Hello,

I used the script utility from the bsdutils package but would be
interested in a more readable solution cause script reports all control
characters as well.

Peter

--
--
Peter Weiss, Riemenschneiderstraße 4, 82008 Unterhaching
--
---The foolish ones taught more to me than the wise ones ever could---
--


Re: how to keep output of apt-get in a file ?

1999-04-30 Thread Khalid EZZARAOUI
thanks.

I try what you say, but I would like to see the output in the same time (during 
the
upgrade) in my terminal that it is save in the file.


Re: how to keep output of apt-get in a file ?

1999-04-30 Thread Carl Mummert
 I used the script utility from the bsdutils package but would be
 interested in a more readable solution cause script reports all control
 characters as well.

This is the best way to capture output froma program.  While I am unsure about
apt, some other programs are immune to shell redirection (since they open
their own output streams straight to your display) and can only be logged
with script.

If you want to make your script output more legible, try piping it through
  tr -cs '[a-zA-Z0-9. ]' '[\n*]'

And try to avoid using editors etc. while in the script session.

Carl


Re: how to keep output of apt-get in a file ?

1999-04-30 Thread Kirk Hogenson
You could use tail -f in a different window:

xterm #1 apt-get upgrade output.txt 21
xterm #2 tail -f output.txt

or maybe in the same window by backgrounding the first.

Or, you could use tee:

  apt-get upgrade 21 | tee output.txt | tee

Kirk


Khalid EZZARAOUI wrote:
 
 thanks.
 
 I try what you say, but I would like to see the output in the same time 
 (during the
 upgrade) in my terminal that it is save in the file.
 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null


Re: how to keep output of apt-get in a file ?

1999-04-30 Thread Bob Hilliard
Peter Weiss [EMAIL PROTECTED] writes:
 
  On Fri, 30 Apr 1999 13:48:49 +0200, Khalid EZZARAOUI [EMAIL 
  PROTECTED] said:
 
 Khalid did someone know if apt-get keep it's output somewhere, or the way to 
 do
 Khalid it ?
 Khalid because the long list of thing to do during the install ?
 
 Khalid I try :
 Khalid apt-get upgrade 12 apt-get_output.txt
 Khalid but I don't see what is wrong.
 
 Hello,
 
 I used the script utility from the bsdutils package but would be
 interested in a more readable solution cause script reports all control
 characters as well.
 
 Peter

 The script output file can be cleaned up in emacs (although it's
a bit tedious).  The first step is to get rid of the ^Ms with M-%
C-q C-m [ENT] [ENT].

 A tee command should allow the output to be redirected to a file
and remain visible on the screen (I haven't tested this) :
 apt-get upgrade 2%1 |tee apt-get_output.txt

Bob
-- 
   _
  |_)  _  |_   Robert D. Hilliard[EMAIL PROTECTED]
  |_) (_) |_)  Palm City, FL  USAPGP Key ID: A8E40EB9


Re: how to keep output of apt-get in a file ?

1999-04-30 Thread Wayne Topa

Subject: Re: how to keep output of apt-get in a file ?
Date: Fri, Apr 30, 1999 at 03:11:35PM +0200

In reply to:Khalid EZZARAOUI

Quoting Khalid EZZARAOUI([EMAIL PROTECTED]):
 thanks.
 
 I try what you say, but I would like to see the output in the same time 
 (during the
 upgrade) in my terminal that it is save in the file.
 

How about tail -f what_ever_you_called_the_output_file.
In another console, of course.


-- 
Real programmers don't write in FORTRAN.  FORTRAN is for pipe stress
freaks and crystallography weenies.  FORTRAN is for wimp engineers who
wear white socks.
___
Wayne T. Topa [EMAIL PROTECTED]