View Single Post

   
  #4 (permalink)  
Old 02-21-2008, 06:10 AM
=?iso-8859-1?Q?H=E5kon_A=2E_Hjortland?=
 
Posts: n/a
Default Re: Creating filelist with portage-2.0.49-r3

In article <5cifqyimphmk.dlg@ID-54419.user.uni-berlin.de>, Stephan Vollmer wrote:
> On Fri, 5 Sep 2003 22:11:23 +0200, Sebastian Siewior wrote:
>
>> emerge -pu world 2>&1 >filelist.lst

>
> I just tried it, but unfortunately it doesn't seem to work.
> The result is still the same: The filelist appears on
> screen, not in the file.
>
> - Stephan


emerge -pu world >filelist.lst 2>&1
or
emerge -pu world &>filelist.lst


I think the command you tried means:
"2>&1": Pipe stderr to the same as stdout (the screen).
">filelist.lst": Pipe stdout to file.
Stderr remains piped to screen.

Swapping the two redirect-commands will make stdout go to file, then
make stderr goto the same as stdout (i.e. file).

--Håkon
Reply With Quote