スリープ 10 を待たずに Runtime.getRuntime().exec(p) を実行するにはどうすればよいですか?? 現在のところ、それは間違っています。exec が完了するまで待ってから、次に移動します。その場でexecを実行する必要がある場合は、10秒後にPresentationInProjector.jpgを強制終了できるようにします。
Example:
Runtime.getRuntime().exec("(sleep 10; echo '09|00|CC|01|83|88' | nc localhost 58888) &");
PlayThisSlideShow("PresentationInProjector.jpg");