Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Important emerge messages disappearing before I can read.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jjolly
n00b
n00b


Joined: 23 Apr 2002
Posts: 13

PostPosted: Tue Feb 18, 2003 5:33 pm    Post subject: Important emerge messages disappearing before I can read. Reply with quote

Hi all,

I've had a problem with the useful (and sometimes vital) emerge post-install messages flying past on the screen. Is is especially prevalent when doing 'emerge -u world'. I have made a habit of doing 'emerge -up world' and emerging each package one at a time from top to bottom, but this is horribly time consuming (and really doesn't work well in a cron job :?).

So, my question: Is something in place that would allow me to view those messages after a long emerge session? Certainly not /var/log/emerge.log since that only shows that an emerge was done, none of the relevant message.

Just making sure the work isn't already done.
_________________
John Jolly
"Of all the things I've lost, I miss my mind the most."
Back to top
View user's profile Send private message
bsolar
Bodhisattva
Bodhisattva


Joined: 12 Jan 2003
Posts: 2764

PostPosted: Tue Feb 18, 2003 5:52 pm    Post subject: Reply with quote

You can redirect the output of emerge to a file.
Code:
# emerge [yourpackage] | tee [yourfile]

_________________
I may not agree with what you say, but I'll defend to the death your right to say it.
Back to top
View user's profile Send private message
jjolly
n00b
n00b


Joined: 23 Apr 2002
Posts: 13

PostPosted: Tue Feb 18, 2003 7:10 pm    Post subject: Another day, another new utility... Reply with quote

Thanks, not only do I now know how to catch those messages, but I have also be introduced to a new (to met, at least) tool.

Is there any reason why this isn't in the scripts to begin with? Much like a --logfile (-l) option. Or why not add it to the make.conf as a LOGFILE= variable.

I'm sure I could go on and on with the feature request. Anybody mind if I add it?
_________________
John Jolly
"Of all the things I've lost, I miss my mind the most."
Back to top
View user's profile Send private message
AndiW
n00b
n00b


Joined: 11 Jan 2003
Posts: 65
Location: Vienna - Austria

PostPosted: Tue Feb 18, 2003 7:45 pm    Post subject: Reply with quote

Another method is to start your emerge with:

Code:
nohup emerge *your package * &


This will run the emerge in the background and redirect all output (stdout and stderr) to a file nohup.out.

You can follow the emerge with:

Code:
tail -f 20 nohup.out

_________________
A beginning is the time for taking the most delicate care that balances are correct. -- Princess Irulan, "Manual of Muad'Dib"
Back to top
View user's profile Send private message
BlackBart
Apprentice
Apprentice


Joined: 07 Oct 2002
Posts: 252

PostPosted: Tue Feb 18, 2003 8:11 pm    Post subject: Reply with quote

or emerge portage then update your make.conf and there is an option to specify where you want your emerge logs to go.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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