Sorry, I cannot use Korean for now.


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]

±Û¾´ÀÌ :Yoon Kyung Koo 1999³â 5¿ù 06ÀÏ 17:07:49

In Reply to: [´äº¯ ¾È¿Ã¶ó¿À¸é ÆøÆÄ~~~~~~ Á¦¹ß] ¿©±ä ´äº¯ÀÌ ³Ê¹« ¾È¿Ã¶ó¿Í¿ä..... posted by °íºÀ¼ö on 1999³â 5¿ù 05ÀÏ 15:29:47:

I think it does work.
If you want to get the output of execed process,
you can use like this :


Process ps = Runtime.getRuntime().exec("java Goo");
try {
BufferedReader br=
new BufferedReader(new InputStreamReader(ps.getInputStream()));
String str=null;


while ((str=br.readLine())!=null) {
System.out.println("OUTPUT:"+str);
}
} catch (IOException ie) {
// do something to handle exceptions
}


What's subject to be thought wrong is that
you should use getInputStream to get stdout of execed process,
and getErrorStream to get stderr,
getOutputStream to get stdin.



´ÙÀ½ ±Ûµé:



À̾ ±Û¿Ã¸®±â(´äÇϱâ)

À̸§:
E-Mail:
Á¦¸ñ:
³»¿ë:
HTML ÅÂ±× Æ÷ÇÔ ¿©ºÎ: HTML ¹®¼­ÀÏ °æ¿ì üũ
°ü·Ã URL(¼±ÅÃ):
URL Á¦¸ñ(¼±ÅÃ):
°ü·Ã À̹ÌÁö URL:


[ ´ÙÀ½ ±Ûµé ] [ À̾ ±Û¿Ã¸®±â(´äÇϱâ) ] [ ÀÚ¹Ù ¹¯°í ´äÇϱâ ]