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.
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.