Computing.Net > Forums > Programming > Java System Command Execution

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Java System Command Execution

Reply to Message Icon

Name: chrisjasp
Date: December 15, 2004 at 10:58:03 Pacific
OS: Linux
CPU/Ram: 1.3
Comment:

Does anyone know if there is a way to execute a system command in the background from java? I can execute it using the System objec with exec. I want to execute it as if you typed
>ls &
at the command prompt.
When you put the & in the exec string it thinks its an argument part of the command.
Any help would be appreciated.

C



Sponsored Link
Ads by Google

Response Number 1
Name: bamakhrama
Date: December 16, 2004 at 01:59:09 Pacific
Reply:

Look in the Java API for the class "Runtime". It is responsible for running and controlling processes.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Java System Command Execution

Java applet execute system command www.computing.net/answers/programming/java-applet-execute-system-command/5867.html

Running System Commands from Java www.computing.net/answers/programming/running-system-commands-from-java/11820.html

java system call to C++ program www.computing.net/answers/programming/java-system-call-to-c-program/10126.html