My scenario is:
The shell command "sudo xxx" should be run by Runtime.getRuntime().exec() on linux.
It should wait for entering the password, but it not. And the command fails to executed.
So could you tell me how to upload my password to the process by
Java??
I have the idea to enter the passwd by changing the shell command, like this "echo passwd | sudo xxx".
Or create a no passwd account. But I need the password entered by Java function.
Do me a favor. Thanks