stdout

Hi,I keep seeing this following a command:>& /dev/stdoutWhat does this mean?thx,
[122 byte] By [Linda_B] at [2007-11-26 11:32:50]
# 1

My source says that it is "Multiple Redirection"

and is the same as &> file

which is the same as > file 2>&1

(which means both standard output and standard error are sent to the same file).

&> fileis listed as the "preferred form"

I did not know that. Thanks for the good question.

have a good weekend,

sysglen

sysglen at 2007-7-7 3:48:37 > top of Java-index,General,Sys Admin Best Practices...
# 2
hi,redirection to the console (the screen) you mean?Does it mean all the output of this command will be displayed on the screen?thanks
Linda_B at 2007-7-7 3:48:37 > top of Java-index,General,Sys Admin Best Practices...
# 3

> My source says that it is "Multiple Redirection"

> and is the same as &> file

> which is the same as > file 2>&1

> (which means both standard output and standard error

> are sent to the same file).

>

> &> fileis listed as the "preferred form"

2>&1 may indeed be the preferred form in sh-style shells, but csh-style shells use >&. I would wager that construction is from a csh syntax script.

--

Darren

Darren_Dunham at 2007-7-7 3:48:37 > top of Java-index,General,Sys Admin Best Practices...