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
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
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
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
{
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