Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ```read user
  2. ```read pw
  3.  
  4. I want to call this script "test.sh" with the Process Builder 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..
  5. The username and the pw is always the same, that's the reason why I want to do this automatically.
  6.  
  7.  
  8. Thank you all.
  9.  
  10. The full path to the script is here {/c/users/lia/desktop/test.sh"..}
  11.  
  12. So when I execute just the script this in git bash and it is directly here at the desktop with "sh test.sh" I get the content and it works fine..
  13.  
  14. In my String I have it like this String[] cmd = {"sh test.sh", "user", "pw"};
  15.  
  16. When I convert it into an jar file (I need it later as a jar file) it does not work. Got the message "cannot find file"
  17.  
  18. When I do it like this : String [] cmd = {desktop/t/c/users/lia/test.sh"..} it does not work
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement