I want to add paramters to the ProcessBuilder. I have a shell script like this
I want to call this script "test.sh" with the Process Builder and want to give the user and the pw as arguments. That the script is automatically doing this. Otherwise I always have to type in the user and the password..
The username and the pw is always the same, thats the reason why I want to do this automatically.
So I have a shell script. If I want to execute this in command line not with a jar file or something like that I have to enter a password and a username.
This action I want to do with a jar file automatically... So I have to give the password and username to the process builder as arguments ? So I tried it but it does not work.. the password is test "user" is also "utest".. so executing the shell script is working but commit the password and username for executing it automatically via the jar file is still not working ☹️
I tried it like your code with some changes and it works finde I just added the Bufferreader for the Output. The problem is, that the output of my Shellscripte is not a string.. it is a password and username query.. It does not work with output string..