how to run a command in ubuntu terminal
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.
Process child3 = Runtime.getRuntime().exec(product);
any ideas thanks.
Re: how to run a command in ubuntu terminal
I would use a ProcessBuilder instead, and then redirect the input and output of the Process so you can see any error messages.