Laura wrote:
> 
> Massimo Conti wrote:

> >              (Runtime.getRuntime()).exec(path+programName);

> It's not so easy.....!!
> For exemple, if you want to run "ls", you must handle the output with
> stream and do a loop to show the result.
> 
8<
> Is there anybody who knows more about it?

Check out
Process proc = Runtime.getRuntime().exec(command);
Process.getOutputStream()
Process.getInputStream()

Just handle the streams as required...
(the command is a separate process so you can carry on
prodding and listening to the streams in your program)

Joe

-- 
Joe Carter      Software Engineer
Brite Voice Systems Ltd, Gatley, Cheshire. UK.
mailto:[EMAIL PROTECTED]

Reply via email to