* [gentoo-user] redirect
@ 2006-07-21 21:11 James Lockie
2006-07-21 22:26 ` Neil Bothwick
2006-07-21 22:43 ` Richard Fish
0 siblings, 2 replies; 4+ messages in thread
From: James Lockie @ 2006-07-21 21:11 UTC (permalink / raw
To: Gentoo User Mailing List
How do I redirect the error from an emerge?
I did 'emerge system 2>&1 >t' and that does most of it but it misses the
actual error message.
'gpm -m /dev/psaux' fails to open null or I would copy the output to a file.
I did a new install and it is failing to emerge glibc.
gpm used to work on this computer in the previous installation.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] redirect
2006-07-21 21:11 [gentoo-user] redirect James Lockie
@ 2006-07-21 22:26 ` Neil Bothwick
2006-07-21 22:43 ` Richard Fish
1 sibling, 0 replies; 4+ messages in thread
From: Neil Bothwick @ 2006-07-21 22:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 299 bytes --]
On Fri, 21 Jul 2006 17:11:48 -0400, James Lockie wrote:
> How do I redirect the error from an emerge?
Set PORT_LOGDIR in /etc/make.conf. The directory you set it to must exist
and be writable by portage.
--
Neil Bothwick
WinErr 01F: Reserved for future mistakes of our developers.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] redirect
2006-07-21 21:11 [gentoo-user] redirect James Lockie
2006-07-21 22:26 ` Neil Bothwick
@ 2006-07-21 22:43 ` Richard Fish
2006-07-22 8:34 ` Neil Bothwick
1 sibling, 1 reply; 4+ messages in thread
From: Richard Fish @ 2006-07-21 22:43 UTC (permalink / raw
To: gentoo-user
On 7/21/06, James Lockie <bjlockie@lockie.ca> wrote:
> How do I redirect the error from an emerge?
> I did 'emerge system 2>&1 >t' and that does most of it but it misses the
> actual error message.
2>&1 >foo is the wrong syntax for what you want. This first copies
stderr to stdout, and the second part redirects stdout to a file, but
stderr is still going to the file descriptor that stdout originally
refered to. It is logically the equivalent of:
stdout=1
stderr=2
stderr=$stdout
stdout=foo
echo $stderr
The correct syntax is ">foo 2>&1", which does the logical equivalent of:
stdout=1
stderr=2
stdout=foo
stderr=$stdout
HTH,
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-07-22 8:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-21 21:11 [gentoo-user] redirect James Lockie
2006-07-21 22:26 ` Neil Bothwick
2006-07-21 22:43 ` Richard Fish
2006-07-22 8:34 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox