Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タブ機能「コード補完」と質問があるWebシェルクライアントを開発しています。1 つのセッションで複数のコマンドを実行できるローカル tty 永続接続を開く方法を誰もが知っています。なにか提案を?よろしく
オブジェクトを保持するRuntime.getRuntime().exec("command");代わりに。次に、そのメソッドによって提供される OutputStream にコマンドを書き込むことができます。InputStreamを読み取ることによって、既に出力を取得していると思います。Runtime.getRuntime().exec("/bin/sh");ProcessgetOutputStream()
Runtime.getRuntime().exec("command");
Runtime.getRuntime().exec("/bin/sh");
Process
getOutputStream()