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. nice code. code is running perfectly. but my probl
View Tutorial          By: Avinash at 2013-01-28 07:30:19

2. How to fix this Error.....

org.apac

View Tutorial          By: james prabhakaran at 2014-12-02 13:08:30

3. This code worked but it only add the same vales se
View Tutorial          By: Dammy Temmy at 2013-01-17 17:22:17

4. Good explanation... very helpfull
View Tutorial          By: Ananth at 2009-02-02 00:26:05

5. nice one
View Tutorial          By: navyasri at 2012-05-02 04:41:10

6. This is good for beginners.
View Tutorial          By: sathish at 2011-04-05 11:37:30

7. Nice Article, but these concepts are pretty confus
View Tutorial          By: Goldest at 2011-03-18 01:50:50

8. great.....
View Tutorial          By: rashid at 2009-12-07 03:22:46

9. Hello,
i was run your given program in ecli

View Tutorial          By: vishnu chauhan at 2013-01-24 11:42:16

10. i am getting the erorr such as:::::
Error l

View Tutorial          By: supriyo at 2011-02-21 13:17:00