lang
1Process process = Runtime.getRuntime().exec( command ); 2PrintStream out = new PrintStream( process.getOutputStream() ); 3out.println( string );
この様な感じで外部プロセスの標準入力に文字列を出力したいのですが、外部プロセス側で文字列を受け取ってくれません。
標準出力及び標準エラー出力を取得し、文字列を受け取ることは以下の様なコードで出来るのですが。
lang
1Process process = Runtime.getRuntime().exec( command ); 2InputStream in = process.getInputStream(); 3char c = (char)in.read();
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。