I am Ph.D. student in Computer Science at King Abdullah University of Science & Technology (KAUST).
You can use folowing code snippet to launch a Unix script with Java.
String[] cmd = {"/bin/sh", "-c", "ls > hello"}; Runtime.getRuntime().exec(cmd);For more details: Java Tips
Post a Comment
No comments:
Post a Comment