Computing.Net > Forums > Programming > Running System Commands from Java

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.

Running System Commands from Java

Reply to Message Icon

Name: chrisjasp
Date: December 10, 2004 at 21:45:47 Pacific
OS: linux
CPU/Ram: 1.3G
Comment:

Im pretty new to java so bear with me. I already know how to execute a system command with the Runtime class. My questions is, Is there a way if the command you execute promts for more input that cannot be included as an argument can you send that to that object you create with the initial execution of the command. If not or if so for that matter. How is this done.
My only other option would be to generate the information in an expect script and execute that from my java app.

Any help would be appreciated.

C



Sponsored Link
Ads by Google
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: Running System Commands from Java

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

running dos commands from dialog bo www.computing.net/answers/programming/running-dos-commands-from-dialog-bo/14283.html

system calls via Java www.computing.net/answers/programming/system-calls-via-java/10121.html