문제

I'm running Java program on solaris and want to redirect both standout and standerr to a log file while still keeping them in the console.

Here's the command I use:

Java -jar MyProgram.jar 2>&1 | tee build.log

However, it gives me the following error:

Ambiguous output redirect

도움이 되었습니까?

해결책

Use ksh or bash, (t)csh doesn't support this syntax (and possibly not even the functionality)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top