[Comm] перенаправление вывода в лог

Андрей Булава =?iso-8859-1?q?raven_=CE=C1_dgtu=2Edonetsk=2Eua?=
Пт Окт 25 17:34:58 MSD 2002


On Fri, 25 Oct 2002, Слава Гарелин wrote:

<skip>

>
> 2>&1 > rebuil.log

Читайте нижеследующий отрывок man bash до просветления.

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

              ls > dirlist 2>&1

       directs both standard output and  standard  error  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.

> --
> Slava Garelin

--
С наилучшими пожеланиями,
 Андрей Булава [ AB1002-UANIC ]
Информационный центр ДонНТУ




Подробная информация о списке рассылки community