You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Gu...@instinet.com on 2005/11/25 01:15:21 UTC

Messing with the terminal

I am having extreme difficulty capturing stderr and stdout to redirect to 
the file when I do this:

java -jar bin/deployer.jar deploy <plan> 1>dump 2>&1

I have even tried putting it in a shell script and even putting { } around 
it (which should have made no difference anyway).

As a result it is impossible for me to capturing a big stack trace which 
is coming out.

Is this behavior intended?

*****************************************************************
<<<Disclaimer>>>

In compliance with applicable rules and regulations, Instinet
reviews and archives incoming and outgoing email communications,
copies of which may be produced at the request of regulators.
This message is intended only for the personal and confidential
use of the recipients named above.  If the reader of this email
is not the intended recipient, you have received this email in
error and any review, dissemination, distribution or copying is
strictly prohibited. If you have received this email in error,
please notify the sender immediately by return email and
permanently delete the copy you received.  

Instinet accepts no liability for any content contained in the
email, or any errors or omissions arising as a result of email
transmission. Any opinions contained in this email constitute
the sender's best judgment at this time and are subject to change
without notice.   Instinet does not make recommendations of a
particular security and the information contained in this email
should not be considered as a recommendation, an offer or a
solicitation of an offer to buy and sell securities.

*****************************************************************


Re: Messing with the terminal

Posted by Aaron Mulder <am...@alumni.princeton.edu>.
Does it help to put the "2>&1" before the "> dump"?  Also I think you
should be OK with just "> dump" as opposed to "1> dump".  So :

java -jar bin/deployer.jar deploy plan.xml 2>&1 >dump

Aaron

On 11/24/05, Guglielmo.Lichtner@instinet.com
<Gu...@instinet.com> wrote:
>
> I am having extreme difficulty capturing stderr and stdout to redirect to
> the file when I do this:
>
> java -jar bin/deployer.jar deploy <plan> 1>dump 2>&1
>
> I have even tried putting it in a shell script and even putting { } around
> it (which should have made no difference anyway).
>
> As a result it is impossible for me to capturing a big stack trace which is
> coming out.
>
> Is this behavior intended?
>
> *****************************************************************
>  <<>>
>
>  In compliance with applicable rules and regulations, Instinet
>  reviews and archives incoming and outgoing email communications,
>  copies of which may be produced at the request of regulators.
>  This message is intended only for the personal and confidential
>  use of the recipients named above. If the reader of this email
>  is not the intended recipient, you have received this email in
>  error and any review, dissemination, distribution or copying is
>  strictly prohibited. If you have received this email in error,
>  please notify the sender immediately by return email and
>  permanently delete the copy you received.
>
>  Instinet accepts no liability for any content contained in the
>  email, or any errors or omissions arising as a result of email
>  transmission. Any opinions contained in this email constitute
>  the sender's best judgment at this time and are subject to change
>  without notice. Instinet does not make recommendations of a
>  particular security and the information contained in this email
>  should not be considered as a recommendation, an offer or a
>  solicitation of an offer to buy and sell securities.
>
> *****************************************************************
>

Re: Messing with the terminal

Posted by Bruce Snyder <br...@gmail.com>.
On 11/24/05, Guglielmo.Lichtner@instinet.com
<Gu...@instinet.com> wrote:
>
> I am having extreme difficulty capturing stderr and stdout to redirect to
> the file when I do this:
>
> java -jar bin/deployer.jar deploy <plan> 1>dump 2>&1
>
> I have even tried putting it in a shell script and even putting { } around
> it (which should have made no difference anyway).
>
> As a result it is impossible for me to capturing a big stack trace which is
> coming out.

Why not just use tee?

http://www.opengroup.org/onlinepubs/007908799/xcu/tee.html

Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

The Castor Project
http://www.castor.org/

Apache Geronimo
http://geronimo.apache.org/