We have this setup where we have password authentication to our remote unix server. I always run the same commands every day and it is very repetitive. What I basically do is:
- Open putty, enter hostname
- input username and password
- sudo su - oracle
- input password again
- cd /someDirectory
- ./script.sh
- copy output of script and save to txt file
I am able to automate step 1 and 2 by writing a small bat file, but I don't know how to do the rest of the steps
putty.exe -ssh <user>@<server> -pw <password>