• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to see the console output thru exec();  RSS feed

 
Oni Anand
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
i am extecting following command in my java program:

Process pr = rt.exec("java com.sun.xslt.runtime.DefaultRun d:/xsltc/samples/test1.xml xsl1");
now the command with in exec() gives console output when run on dos -comman prompt. i want to see the same output within my JBuilder output windowd when i am using exec();
any solution for that ??
tx
AA
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the post http://www.javaranch.com/ubb/Forum38/HTML/000063.html

------------------
Hope This Helps
Carl Trusiak
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!