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

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

Java program to check if user input is an even number

Archived Comments

1. plz give me for css coding
View Tutorial          By: anil mani at 2008-04-19 01:20:06

2. I want to know the difference between java and .ne
View Tutorial          By: Jack at 2010-06-10 07:40:35

3. can i get some basic examples of java program
View Tutorial          By: raja at 2013-06-04 10:47:12

4. Controlling Page Navigation in JSF - Static and Dy
View Tutorial          By: chip at 2010-10-07 05:16:14

5. why we use the java in networking and What are the
View Tutorial          By: ali mohammed at 2015-10-11 23:03:40

6. Hei Kaify What is this????
if we get knowle

View Tutorial          By: Sooraj A.S at 2011-08-26 14:12:36

7. Simple Codes please... I just wonder why does my p
View Tutorial          By: Joseph at 2009-11-12 05:37:50

8. Hello,
I would like to know how will take p

View Tutorial          By: Jeff at 2011-02-02 23:05:17

9. when i was running this code... it is giving me th
View Tutorial          By: Nilesh Agrawal at 2012-06-08 15:08:25

10. Thanks, Just what i was looking for.
View Tutorial          By: Baapu at 2009-10-21 15:21:43