On 6/29/06, David Smith <[EMAIL PROTECTED]> wrote:
How is that messed up?  Makes perfect sense from the perspective of the
calling java code and is consistent with input and output streams for
files, network connections, etc., ...

It would make perfect sense (imho), but than, whats with the error
stream? If getErrorStream method gives you the stderr, I expect
getInputStream to give you the stdin and getOutputStream to give you
stdout. But if getInputStream gives you the stdout I'd expect the
getErrorStream method to be named something like
getErrorInputStream...

It's mixing ontologies, if you refer to standart java naming, than
getErrorStream is misnamed, if you refer to stdin, stdout, stderr than
mapping stdin to getOutputStream etc is not very consistent. However,
once you know it, you can handle it, but sofar all people I talked to
were misleaded by names and therefor I warned Martin to save him some
time.

Leon

On 6/29/06, David Smith <[EMAIL PROTECTED]> wrote:
How is that messed up?  Makes perfect sense from the perspective of the
calling java code and is consistent with input and output streams for
files, network connections, etc., ...

--David

Leon Rosenberg wrote:

> Alas, the getInputStream and getOutputStream methods are mixed up, the
> getInputStream method gives you the stdout of the process and the
> getOutputStream - the stdin.
> Leon
>
> On 6/29/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
>
>> I suppose you use Runtime.exec() ?
>> If yes, you should grab the process output and error streams from the
>> resulting Process class:
>>
>> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Process.html
>>
>> regards
>> Leon
>>
>> On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
>> > Good Afternoon All-
>> >
>> > I am attempting to exec a kshell from a Servlet
>> > I execute it fine but do not see any output or error messages from
>> catalina.out or my debug file (a redirect of output inside the kshell)
>> > In other words I have no clue as to what this kshell script is
>> actually doing
>> > Any Suggestions to find out what is happening???
>> >
>> > Many Thanks,
>> > Martin --
>> > *********************************************************************
>> > This email message and any files transmitted with it contain
>> confidential
>> > information intended only for the person(s) to whom this email
>> message is
>> > addressed.  If you have received this email message in error,
>> please notify
>> > the sender immediately by telephone or email and destroy the original
>> > message without making a copy.  Thank you.
>> >
>> >
>> >
>> >
>>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to