Re: no responce.

Steve Harris (omerb@ankara.datasel.com.tr)
Fri, 2 Feb 1996 12:29:01 +0200


On 2 Feb 96 at 12:07, List Subscriber wrote:

>
> ping -c2 baum02 > /dev/null 2>&1
> ^^^^
> bu standard erroru standard output a mi redirect eder?
> tore
----------------------------------------------------------
... 2>&1

means file descriptor 2 is to be opened for writing as a
duplicate of file descriptor 1.

Redirection order is significant because the shell evaluates
redirections referencing file descriptors in terms of the
currently open file associated with the specified file
descriptor at the time of evaluation. For example:

... 1>fname 2>&1

first assigns file descriptor 1 (standard output) to file fname,
then assigns file descriptor 2 (standard error) to the file
assigned to file descriptor 1; i.e., fname. On the other hand,
if the order of redirection is reversed as follows:

... 2>&1 1>fname

file descriptor 2 is assigned to the current standard output
(user terminal unless a different assignment is inherited).
File descriptor 1 is then reassigned to file fname without
changing the assignment of........
-------------------------------------------------------------
------------------------------------------------------
I Come Not, Friends, To Steal Away Your Hearts.
Julios Caeser Act III. Scene ii.
------------------------------------------------------