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 to send keyboard control key to UNIX

Status
Not open for further replies.

gotchausa

Programmer
Jan 24, 2002
64
CA
Hi,

I need to be able to create a subprocess to send keyboard keys such as the ENTER key in response to a Unix process from Java, is there a way of doing this? Basically, this is what I do within my Java program:

1. Invoke a Unix script
2. Unix script starts a process which requires input from the user before it can continue.

I want to be able to automatically send in the input instead of having to wait for the user to hit the ENTER key.

Many thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top