現在、コマンド「bash -c [bashCommandString]」を渡す ProcessBuilder を作成しています。次に、bashCommandString は「bash -c [anotherCommandString]」を実行します。
私のコードは Process.getInputStream と getOutputStream を呼び出して、ProcessBuilder を通じて開始されたプロセスの stdout と stdin を取得します。
この場合、
1) [anotherCommandString] で実行されるスクリプトの stdin と stdout は、Process.getInputStream と getOutputStream で取得できますか?
2) stdin と stdout の IO パフォーマンスは、このスクリプト実行のネストによって影響を受けますか?
前もって感謝します。