java - Ambiguous output redirect on solaris -


i'm running java program on solaris , want redirect both standout , standerr log file while still keeping them in console.

here's command use:

java -jar myprogram.jar 2>&1 | tee build.log 

however, gives me following error:

ambiguous output redirect

use ksh or bash, (t)csh doesn't support syntax (and possibly not functionality)


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -