Re: Will 2&>1 not pipe stderr to stdout?
On 8 28 , 2 43 , Scott McMillan <smcmil...@twmi.rr.com> wrote:
> On Mon, 27 Aug 2007 18:23:17 -0000, Carfield Yim <carfi...@gmail.com>
> wrote:
>
> >I am maintaining a Java application that consist of a lot of code
> >using exception.printstacktrace() to print exception messages to
> >standard error stream. I am not allowed to update the code to make it
> >log properly.
>
> >Then I try to start my application using script like java -cp xxx
> >MainClass > log.txt 2&>1 & so that the exception message will be
> >logged. However, we found out that the exception message is not
> >logged. Is there any problem about this approach? How can I log the
> >standard error stream?
>
> ... 2>&1
>
> Scott McMillan
Typo, it is 2>&1 already
|