Re: Newbie question on windows/java/tcl I/O
From: Cameron Laird (claird_at_lairds.com)
Date: 06/16/04
- Next message: Bhushit Joshipura: "namespaces and TCLLib ::struct::record"
- Previous message: Cameron Laird: "Re: Expect not working with SSH on CygWin"
- In reply to: Cameron Laird: "Re: Newbie question on windows/java/tcl I/O"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 16 Jun 2004 01:19:55 -0000
In article <10ch70ophi6u45@corp.supernews.com>, I explained:
>In article <10cgipm5sb1knce@corp.supernews.com>, I suggested:
>>In article <82427ea2.0406100247.516beeff@posting.google.com>,
>>Petter ?sterling <petter6618389@hotmail.com> wrote:
.
.
.
>>Does your Java-coded program not write its exception reports to
>>stderr?
>
>I've confused things. I hope to unsnarl them now.
>
>Petter e-mailed me privately. I'll take the liberty of quoting
>the heart of his reply verbatim:
> Well I'm new to the windows world and feel kind
> of confused by the I/O channels compared to UNIX.
>
> The java program catches most exceptions so it
> wont crash. To be able to catch the exeptions in
> test I asked the developers to write them to
> stderr (that's what we called it in unix anyway:).
> To make this happen they use System.err.println().
> Doesn't this funtion print to stderr?
>It'll be a while before I can give this the care it deserves.
>Perhaps others will help, in the meantime.
>
>Petter, please be aware that what you're attempting is reason-
>able. A couple more rounds of correction, and you should find
>success. If you need immediate and/or private help, I have to
>charge <URL: http://phaseit.net/technical_support.html >.
>Otherwise, comp.lang.tcl should eventually clear up all these
>matters with you.
.
.
.
A correct System.err.println() should indeed write to
stderr, even under Windows. I recommend you start by
confirming that's your situation.
Windows I/O channels certainly do confuse many of us
coming from Unix. I'm sure we can help you get through
this. Correct use of [catch] is likely to be at the
heart of it. You might want to read <URL:
http://wiki.tcl.tk/catch >.
Your Tcl program controls the Java application. Does
the latter print a single exception to stderr, and exit
immediately, or might it print many messages to stderr?
-- Cameron Laird <claird@phaseit.net> Business: http://www.Phaseit.net
- Next message: Bhushit Joshipura: "namespaces and TCLLib ::struct::record"
- Previous message: Cameron Laird: "Re: Expect not working with SSH on CygWin"
- In reply to: Cameron Laird: "Re: Newbie question on windows/java/tcl I/O"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|