Comment on Tutorial - Execute system commands in a Java Program By Rajan



Comment Added by : rudhin

Comment Added at : 2013-05-10 12:32:57

Comment on Tutorial : Execute system commands in a Java Program By Rajan
Thank you very much sir.
One can simply execute linux commands too this way
just need to change :
"Process p=Runtime.getRuntime().exec("cmd /c dir"); "
to
"Process p=Runtime.getRuntime().exec("ls"); " // or something else
thanks once again.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Would u please provide me with a solution about ho
View Tutorial          By: milan at 2011-02-17 05:39:38

2. Thank you , It is really good for beginners.
View Tutorial          By: Satish Kumar at 2010-01-18 03:06:49

3. Saved my life!
View Tutorial          By: Sahil Nair at 2013-09-21 09:26:54

4. What is meant ClasspathResource why do we use it i
View Tutorial          By: anil kumar at 2008-06-03 05:41:36

5. Good Work ...
View Tutorial          By: Sagan at 2013-08-13 13:38:30

6. Hi, I implemented those project in my NetBeans, cr
View Tutorial          By: Leshqo at 2008-11-14 07:09:13

7. hai, i tried the abvoe code, m getting the follwin
View Tutorial          By: charan at 2011-10-20 12:59:59

8. Thank You , It's Very Good.
View Tutorial          By: Jack at 2012-06-10 14:09:24

9. Your output is not correct.. Give the correct out
View Tutorial          By: Surendrakumar at 2014-06-04 07:00:16

10. This example is very useful....Thanks for your sha
View Tutorial          By: raji at 2015-05-22 07:19:07