LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to run Linux commands using a Java program? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-run-linux-commands-using-a-java-program-801044/)

aparna.v 04-09-2010 09:27 AM

How to run Linux commands using a Java program?
 
Hi,
I want to execute Linux commands using a Java program. I came to know that we can use Runtime.getRuntime().exec("commands") to execute the commands through the program. I'm new to both Linux and Java. It would be helpful if i get more information on this.

PMP 04-09-2010 09:36 AM

A quick googling gave me this, I hope this is helpful
http://www.wellho.net/resources/ex.p.../Discfree.java

pixellany 04-09-2010 09:37 AM

Did you just answer your own question??

Languages typically have a protocol for accessing the shell. Where did you find the example that you cite for Java?

Here's what Google found using "java system call":
http://www.google.com/search?q=java+...ient=firefox-a


All times are GMT -5. The time now is 07:14 PM.