View Full Version : LPIC (Linux) Q.7. - Pipes and Redirects
ramesh
January 24, 2007, 11:38 AM
Which command will produce no onscreen error messages when appending an existing file?
leoandru
January 24, 2007, 11:42 AM
huh? which commands?
MechEng
January 24, 2007, 11:51 AM
RAMESH i think the question is incomplete
death_knight
January 24, 2007, 12:12 PM
i'm thinking >> dev/null.. its piped there so the error would end up there :s.. something to that effect my memory banks suck
leoandru
January 24, 2007, 12:18 PM
i'm thinking >> dev/null.. its piped there so the error would end up there :s.. something to that effect my memory banks suck
oh.. after your answer I just made sense of the question. it seemed like an options question so I though the options were missing.
Also I'll go with your answer pipe it to the null device /dev/null.
ramesh
January 26, 2007, 10:29 PM
The answer is in fact &> error_msg which will direct output only to the file error_msg and not to the screen.
For the life of me I though the answer was > /dev/null when I first saw the question. If someone can tell me why this is wrong I would appreciate it.
As I know it > /dev/null sould eliminate the error message completely, so that it is not redirected anywhere....?
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.