You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Adam Paeth <ap...@fortdearborn.com> on 2000/06/28 17:30:17 UTC
InputStream read causing problems
I've run across an interesting problem...
I'm spawning an external process by getting a RunTime object and executing a
program. The program runs fine. However, I'm using an input stream to try
and get the output from the external program and I get a Broken Pipe error
in the tomcat.log. I've even tried to just get the return code from the
external program. When the JSP page runs, there is no content to the web
page, not even the content before the scriplet that runs the eternal
program.
Has anyone else had this problem or been successful in running an external
program and getting the output and/or return code?
Adam Paeth / apaeth@fortdearborn.com
Advanced Technology Group
Fort Dearborn Company
1530 Morse Ave.
Elk Grove Village, IL 60007
847-427-5494 voice
847-357-8726 fax
Re: InputStream read causing problems
Posted by Oki DZ <ok...@pindad.com>.
On Wed, 28 Jun 2000, Adam Paeth wrote:
> Has anyone else had this problem or been successful in running an external
> program and getting the output and/or return code?
Yes, on Linux.
Oki
Re: InputStream read causing problems
Posted by Oki DZ <ok...@pindad.com>.
On Wed, 28 Jun 2000, Adam Paeth wrote:
> I'm spawning an external process by getting a RunTime object and executing a
> program. The program runs fine. However, I'm using an input stream to try
> and get the output from the external program and I get a Broken Pipe error
Are you using NT? If yes, maybe the command you are calling is not a
command line (.com/.exe) but an internal DOS command.
Oki