Re: [exim] logging session to a file

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Drav Sloan
日付:  
To: exim-users
題目: Re: [exim] logging session to a file
Dave Evans wrote:
> > exim -d -M MESSAGE_ID 2>&1 > my.log
>
> I think that should say:
>
> exim -d -M MESSAGE_ID > my.log 2>&1
>
> At least for the shell that I use.


<man page="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.

</man>

:D

D.