Laura <[EMAIL PROTECTED]> writes:
> try{
> String[] com_ps=
> {"/bin/sh", "-c", "/bin/chmod 755 esegue", "./esegue"};
> Process p = Runtime.getRuntime().exec(com_ps);
> }catch (IOException e0){
> System.err.println(e0);
> System.exit(0);
> }
> }
Runs fine with me: the permissions of the file e
I must to interface a Unix script with java application.
I try with
import java.io.*;
...
try{
String[] com_ps=
{"/bin/sh", "-c", "/bin/chmod 755 esegue", "./esegue"};
Process p = Runtime.getRuntime().exec(com_ps);
}catch (IOException e0){
System.err.println(e0);
System.exit(0);
}
}
}
My scrip