I use putty
everyday to login to a Linux session and execute some commands.
Now since I have a thought to automate this process, I would like some help to complete this process.
I have made a batch file which contains the below commands:
Start putty.exe abc@1.1.1.1 22 -pw 1234
Using this script I am able to open a putty
session.
Now I want it execute my next command as well:
ps -eaf|grp sometext
Can you please help me to achieve this?
It's a huge challenge for me.
Best Answer
I think you can call another script inside this existing batch file containing further commands that you want to execute .
I just had a look at this , just something similar to what you are trying :
https://stackoverflow.com/questions/16439039/batch-file-for-putty-psftp-file-transfer-automation