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 script (esegue) has unix comand to create a ps file and show it.


Does anybody know what kind of problem is? 

Thank you all!

Reply via email to