On Wed, 18 Sep 2002, Javier Fafi�n Alvarez wrote:

> A ver quien puede explicarme esto:
> 16:25 [EMAIL PROTECTED]:~# /usr/bin/fping -p500 -sq -C 10 ruti 2>&1 >/dev/null
> ruti : 0.56 0.56 0.52 0.53 1.68 0.65 0.56 0.55 0.61 0.55
>
>
> � No deber�a salir nada ?????
>

Seg�n el manual de referencia de bash:

>>Note that the order of redirections is significant.  For example,
the command

ls > dirlist 2>&1

directs both standard output (file descriptor 1) and standard error
(file descriptor 2) to the file dirlist, while the command

ls 2>&1 > dirlist

directs only the standard output to file dirlist, because the standard
error was duplicated as standard output before the standard output was
redirected to dirlist.<<


--jaf



Responder a