DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Java (http://www.daniweb.com/forums/forum9.html)
-   -   getting the output of a terminal as input into a java program. (http://www.daniweb.com/forums/thread161857.html)

Grub Dec 11th, 2008 7:18 pm
getting the output of a terminal as input into a java program.
 
Hi

It is possible to execute terminal commands in java, but is it possible to then get the output or result of the terminal command as input into a java program?

If so, may someone tell me how or point to materials that I can read.

Many thanks

Ezzaral Dec 11th, 2008 7:33 pm
Re: getting the output of a terminal as input into a java program.
 
Sure, take a look at Process and ProcessBuilder.

Grub Dec 11th, 2008 7:36 pm
Re: getting the output of a terminal as input into a java program.
 
MAny thanks. :)


All times are GMT -4. The time now is 8:57 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC