Running shell script in Ubuntu from a java program
I am developing a Java program where I need to execute multiple lines of code from the terminal. It also includes some internal commands like cd, so, I thought it would be a good idea to use shell script. But, I get some error while executing shell script from the java program.
Also, I am new to shell script programming. Can anyone tell me how to run a shell script from a java program with a simple example?