Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to grab error messages from emerge?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Faffy
n00b
n00b


Joined: 17 May 2002
Posts: 46

PostPosted: Mon Jul 01, 2002 12:21 pm    Post subject: How to grab error messages from emerge? Reply with quote

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
View user's profile Send private message
abhishek
Retired Dev
Retired Dev


Joined: 28 Jun 2002
Posts: 393
Location: Los Angeles, CA

PostPosted: Mon Jul 01, 2002 4:58 pm    Post subject: Reply with quote

try this:
Code:
emerge xxx>errors

u might have to redirect stderr too. thatd be &>
Back to top
View user's profile Send private message
id10t
Tux's lil' helper
Tux's lil' helper


Joined: 18 May 2002
Posts: 100

PostPosted: Mon Jul 01, 2002 5:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Mon Jul 01, 2002 5:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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