Re: Runtime.exec - multithread ?
Re: Runtime.exec - multithread ?
- Subject: Re: Runtime.exec - multithread ?
- From: Ben Ketteridge <email@hidden>
- Date: Tue, 9 Nov 2004 08:23:54 +0000
On Tue, 9 Nov 2004 09:08:54 +0100, Erwin <email@hidden> wrote:
> In one of my components I launch (successfully..) a C-Program using
> Runtime.exec command-line to convert an Image
> ..........
> try{
> Process runningApp = Runtime.getRuntime().exec(command);
> //
> BufferedReader dtinstrm = new BufferedReader(new
> InputStreamReader(runningApp.getInputStream()) );
> BufferedReader dterrstrm = new BufferedReader(new
> InputStreamReader(runningApp.getErrorStream()) );
> runningApp.waitFor();
Create a new thread to run this code. Alternatively, look at the Java
API documentation for Process and see if there's a way to run without
the waitFor() directive.
Ben
--
| Ben Ketteridge email@hidden, aka Gremlin |
| It is by caffeine alone that I set my mind in motion. |
| It is by the coffee that the thoughts acquire speed, |
| the lips acquire stains, the stains become a warning. |
| It is by caffeine alone that I set my mind in motion. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden