View previous topic :: View next topic |
Author |
Message |
jjolly n00b
Joined: 23 Apr 2002 Posts: 13
|
Posted: Tue Feb 18, 2003 5:33 pm Post subject: Important emerge messages disappearing before I can read. |
|
|
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 |
|
|
bsolar Bodhisattva
Joined: 12 Jan 2003 Posts: 2764
|
Posted: Tue Feb 18, 2003 5:52 pm Post subject: |
|
|
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 |
|
|
jjolly n00b
Joined: 23 Apr 2002 Posts: 13
|
Posted: Tue Feb 18, 2003 7:10 pm Post subject: Another day, another new utility... |
|
|
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 |
|
|
AndiW n00b
Joined: 11 Jan 2003 Posts: 65 Location: Vienna - Austria
|
Posted: Tue Feb 18, 2003 7:45 pm Post subject: |
|
|
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 |
|
|
BlackBart Apprentice
Joined: 07 Oct 2002 Posts: 252
|
Posted: Tue Feb 18, 2003 8:11 pm Post subject: |
|
|
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 |
|
|
|