i'm trying to execute 2 commands via java programme with process
Process p = Runtime.getRuntime().exec(command1); Process p2 = Runtime.getRuntime().exec(command2); the problem is that the first one is ok but the seconde on cant be established it is always bloqed in waitfor()
waitFor()waits for the process to finish execution. Are you sure the second process is actually designed to finish executing, rather than continue running?