View previous topic :: View next topic |
Author |
Message |
Faffy n00b
Joined: 17 May 2002 Posts: 46
|
Posted: Mon Jul 01, 2002 12:21 pm Post subject: How to grab error messages from emerge? |
|
|
Hi!
I have lots of problems during emerge. How can I redirect the emerge error messages to a file so I can copy it here?
Faffy |
|
Back to top |
|
|
abhishek Retired Dev
Joined: 28 Jun 2002 Posts: 393 Location: Los Angeles, CA
|
Posted: Mon Jul 01, 2002 4:58 pm Post subject: |
|
|
try this:
u might have to redirect stderr too. thatd be &> |
|
Back to top |
|
|
id10t Tux's lil' helper
Joined: 18 May 2002 Posts: 100
|
Posted: Mon Jul 01, 2002 5:27 pm Post subject: |
|
|
emerge foo 2> emerge_errors 1> emerge_log &
tail -f emerge_errors &
tail -f emerge_log
This will redirect all the output to 2 files - one for errors and one for regular output. The 2 tail commands will still let you see everything as it goes by like you normally would. _________________ ---
this space for rent |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Mon Jul 01, 2002 5:33 pm Post subject: |
|
|
Alternatively:
Code: | emerge 2>&1 | tee emerge.log |
This will scroll everything on the screen, as normal, as well as logging both errors and non-errors to emerge.log. |
|
Back to top |
|
|
|