Re: exec'ing ksh from Servlet

2006-06-30 Thread Martin Gainty
AIL PROTECTED]> To: "Tomcat Users List" ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Thursday, June 29, 2006 1:57 PM Subject: Re: exec'ing ksh from Servlet > On 6/29/06, Martin Gainty <[EMAIL PROTECTED]> wrote: >> I launch this process &

Re: exec'ing ksh from Servlet

2006-06-29 Thread Leon Rosenberg
sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, June 29, 2006 1:24 PM Subject: Re: exec'ing k

Re: exec'ing ksh from Servlet

2006-06-29 Thread Leon Rosenberg
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 err

Re: exec'ing ksh from Servlet

2006-06-29 Thread Martin Gainty
ave 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. - Original Message - From: "David Smith" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thur

Re: exec'ing ksh from Servlet

2006-06-29 Thread David Smith
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 getInputStr

Re: exec'ing ksh from Servlet

2006-06-29 Thread Leon Rosenberg
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

Re: exec'ing ksh from Servlet

2006-06-29 Thread Leon Rosenberg
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 attemptin

exec'ing ksh from Servlet

2006-06-29 Thread Martin Gainty
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 Suggestio