On Fri, 22 Nov 2002, Mike Burger wrote:

> /path/to/program > /dev/null 2> /dev null
> 
> On Fri, 22 Nov 2002, christopher j bottaro wrote:
> 
> > hey, i wanna start a k program from the konsole, but i don't wanna see all the 
> > dang output.  how do i redirect stdout and stderr to /dev/null?

in earlier shells like sh and ksh, the standard syntax was

$ pgm > /dev/null 2>&1

with bash, there's a shortcut:

$ pgm &> /dev/null              (i think -- that's from memory)

rday



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to