Sorry, syntax error. That should be Process p, not just p :) On Monday 23 September 2002 11:25 am, you wrote: > Ramesh, > > Use java.lang.Runtime. example: > > public class HelloWorld { > public static void main(String[] args) { > p = Runtime.getRuntime().exec("mp.exe"); > // if we want to capture the output from this program > BufferedReader is = new BufferedReader(new > InputStreamReader(p.getInputStream())); > String line; > while ((line = is.readLine()) != null) { > System.out.println(line); > } > } > }
-- Branden Root Web Developer Portent Interactive =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com