Re: [OT] Comportamiento de fping
On Wed, 18 Sep 2002, Javier Fafián Alvarez wrote:
> A ver quien puede explicarme esto:
> 16:25 root@newbe:~# /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
Reply to: