hi im trying to run a few commands in a ubuntu terminal the problem is the last command isint executing
if i copy and paste into a terminal it works untill command4 when i have to hit enter to execute command4 which i think is the problem, i tought \n would run the last command as it does the rest but it doesint.String product=command1+"\n"+command2+"\n"+command3+"\n"+command4+"\n"; System.out.println(product); Process child3 = Runtime.getRuntime().exec(product);
any ideas thanks.