RE: How to pipe output from lspci command to a file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: R P Herrold
Date:  
To: plug-discuss
Subject: RE: How to pipe output from lspci command to a file
On Sun, 20 Feb 2005, Ben Weatherall wrote:

> One change, "command &> filename" should be

     "command &2>1 filename"

> on most systems. The numbers actually refer to relative file
> handles (2=STDERR and 1=STDOUT).


ehhh?  This should be:
     lspci -v > capturefile 2>&1
It needs the > to note that a non-argument (an output 
redirect) is in play, and then the stderr redirect needs to 
follow the stdout capture.


-- Russ Herrold



---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss