Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Can I execute shell command using a java gui? 1

Status
Not open for further replies.

jeremytaffy

Technical User
Sep 6, 2001
75
US
I am new to java and am building a java gui in 1.3.1 in AIX 5.1. I am trying to figure out how to get the gui to execute korn shell commands?

Thanks in advance.
Jeremy
 
waitFor() causes the current thread to block and wait for the Process to finish.

If you want to read the output of the process, you use the streams from the Process:

Process.getOutputStream();// stdout for the process
Process.getInputStream(); // stdin for the process
Process.getErrorStream(); // stderr for the process
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top