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: Ben Weatherall
Date:  
To: plug-discuss
Subject: RE: How to pipe output from lspci command to a file
Russ is right! That's what I get for using cut and paste...

-Ben

On Sunday, February 20, 2005 4:14 PM, Russ Herrold 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

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