I have the following class. It allows me to execute commands through java.
public class ExecuteShellCommand { public String executeCommand(String command) {
Each command is executed individually. They dont share the context.