Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Emerge Comments -Can't ShiftPageUP 2 view previous?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
mortar
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2005
Posts: 131

PostPosted: Thu May 18, 2006 12:08 am    Post subject: [SOLVED] Emerge Comments -Can't ShiftPageUP 2 view previous? Reply with quote

I tried looking around in the forums, but didn't know exactly what wording to use to search for this particular query so sorry if this is a dupe.

When I install many programs at one time, or emerge -avuDN world for instance, after a while the screen history is erased and I can't see what the interaction comments were above.

i.e.
* You need to do this to make this work etc etc..

Is there a way to report on all the comments for your previous emerge?


Last edited by mortar on Thu May 18, 2006 4:13 am; edited 1 time in total
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu May 18, 2006 12:22 am    Post subject: Reply with quote

Well, there's a console way, and an xconsole way. On the console, you
can do
Code:

emerge <whatever> 2>&1 | less


If you hit 's' less will save the output as a file.

In X, just set a ridiculously high history buffer on your terminal program, and scroll away.

There may be better ways. With less, the disadvantage is that is stops at the first screenful, unless you hit 'F', then it will follow the output once you've caught up.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
mortar
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2005
Posts: 131

PostPosted: Thu May 18, 2006 12:26 am    Post subject: Reply with quote

So then I guess I could grep that output with *Or maybe because the lines are in a particular colour, grep by certain colours, is that possible?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu May 18, 2006 2:33 am    Post subject: Reply with quote

Well, you can colorize grep. It's pretty limited, basically just highlighting. But grepping the actual color codes? Is that what you mean? I'm sure there's probably some way to do that. You could tell grep to treat the file as binary. Why would you want to though?
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
mortar
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2005
Posts: 131

PostPosted: Thu May 18, 2006 3:01 am    Post subject: Reply with quote

Basically, rather then sift through previous emerges, I just want to make it easy to quickly see, if the program required me to change anything manually.

From what you've given me i've devised this:
e.g.
Code:

# emerge sun-jre-bin 2>&1 > emergelog.log && cat emergelog.log | grep "*"


This will perform the emerge, and show all the comments involved..
Do you think that's the easiest way to pull it off? I would also like to be able to see the emerge (as normal) if possible and also log it to a file. I'd prefer not to interactive with less as you have to manually save it.

Is there anything I can use to save it to a file with the date?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Thu May 18, 2006 3:38 am    Post subject: Reply with quote

Yeah. That works.

The thing is, I though you wanted to grep for the control characters for
color, not the colors. I.e. ^[033 instead of the color yellow.

I don't know why I thought that.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
mortar
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2005
Posts: 131

PostPosted: Thu May 18, 2006 3:44 am    Post subject: Reply with quote

lol nah was just thinking of a different way to grep the comments but * seems to work fine!

No idea on how to automatically capture the output to a filename with the date inside it?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu May 18, 2006 4:01 am    Post subject: Reply with quote

Read this thread.
Back to top
View user's profile Send private message
mortar
Tux's lil' helper
Tux's lil' helper


Joined: 03 Feb 2005
Posts: 131

PostPosted: Thu May 18, 2006 4:11 am    Post subject: Reply with quote

Awesome program! Exactly what I needed!!

Thanks guys!!

Quick summary.
Code:

# wget http://dev.gentoo.org/~eldad/enotice/install-enotice.sh
# sh install-enotice.sh
# enotice


Very very nice ;)
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Toledo, Ohio,USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Mon May 29, 2006 10:16 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.

By request of Original Poster in favor of this thread.
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum