tomptomp
8 years agoOccasional Contributor
trying to pass multiple bash commands via groovy and/or call a file
What I am trying to do is ssh to a server, enter the user/password, then sudo, then cd to a directory all via groovy in soapui
I'm able to login to the server using a cmd with:
C:\\Putty\\putty.exe -ssh m123456@xxxxx.xx.xx.com -pw mypassword
but I cant pass in the sudo commands. I tried
C:\\Putty\\putty.exe -ssh m123456@xxxxx.xx.xx.com -pw mypassword -m D:\\BASH.txt
OR C:\\Putty\\putty.exe -ssh m123456@xxxxx.xx.xx.com -pw mypassword -C 'sudo su - Aoss'
Any clues?