>
> Just like I said:
> java MyClass 2>error.log
> "2" stands for "stderr" in shell redirection, same as "1" is for "stdout" and
> "0" for "stdin"
> So if you want to put both System.out & System.err in the same log, you may use:
> java MyClass 2>1 1>error.log
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This won't work. You just created a file called "1" using this
command. You need to use the following:
java MyClass 2>&1 > error.log
--Corey
/* Corey Brown (WB0RXQ): 20m, 15m, 2m(146.82) 70cm(443.65) */
/* AT&T NCS | [EMAIL PROTECTED] */
/* Alpharetta, Ga 30005 | [EMAIL PROTECTED] */
/* (770)750-8071 | New rays from an ancient sun (JS) */
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]