I'm unable to run a script in linux using plink.exe
. I'm using my user x to login and script is under y user, which I need to sudo to y and run it. I was able to at command prompt manually but not through script (for automation).
plink.exe -v -t -l user(x) -pw ****** -ssh hostname "sudo su -y /abc/abc/start.sh"
its asking the password again. i was stuck there
Started a shell/command
[sudo] password for X: