i am doing automation the process by bat file.
putty.exe -ssh bhavepatel@10.10.178.140 -pw Winter34! -m C:\Users\BHAVEPATEL\Desktop\tel\tel.txt -t
In tel.txt file , i want to change the directory ans switch the user.Please see below code in tel.txt file
cd /apps/denodo/bin
sudo -su denodo bash; /bin/bash
Putty prompt with pwd when i swith the user to denodo. How can i pass the password input to bat file?