Re: about exec

1998-09-04 Thread Joe Carter
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? C

Re: about exec

1998-09-04 Thread Laura
Massimo Conti wrote: > > Hi | > here is how I made this : > > import java.lang.Runtime; > > public void startService(String programName) { > > try { > path = "/your/path/"; > (Runtime.getRuntime()).exec(path+programName); > } > cat

Re: about exec

1998-09-03 Thread Massimo Conti
Hi | here is how I made this : import java.lang.Runtime; public void startService(String programName) { try { path = "/your/path/"; (Runtime.getRuntime()).exec(path+programName); } catch (Exception e) { System.out.printl

Re: about exec

1998-08-31 Thread Robert P. Biuk-Aghai
On Mon, 31 Aug 1998, Stefano Fratini wrote: > Does anybody know anything about how to use the java.lang.Runtime.exec > to call a Linux process/application from a Java application? It's funny, I happened to do exactly that today. What you want is something like: Process myProcess; try {

about exec

1998-08-31 Thread Stefano Fratini
Hi fellows, Does anybody know anything about how to use the java.lang.Runtime.exec to call a Linux process/application from a Java application? Thanks in advance Stefano