Re: UI java-Unix

1998-09-13 Thread Albert Y.C. Lai
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

UI java-Unix

1998-09-11 Thread Laura
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