Hi
How can I write a Java program to execute Linux commands? What is the best approach:
- Invoking the Linux shell within Java and executing commands
- or, using the Java APIs to do the stuff. Since it is platform independent, it'll know itself what to do. We need not check which OS the Java code is executing on. Simply execute the command