Automating putty commands
We typically use putty at our place to connect to a unix host and perform operations on the unix boxes.
I wanted to know the best way to automate these commands on the unix box 1. connect to the host 2. perform unix commands
I would ideally like to have a bat file on my windows machine which on a single click and do the job for me?
How should i go about? Which is best technique to achieve this?
Any solution for this....i am facing the same issue
Try using plink if you are not using secured protocal
PuTTY Download Page
one of our projects had done it using window, Shell objects but on one condition - should be already logged into putty.
Used sendkeys to provide commands and execute..but it didnt work work for login for username and pwd
That's not true. plink is more like a command line version of putty. It will work on secured protocols like SSH and all
Try using plink if you are not using secured protocalPuTTY Download Page
If you have some time in your project, then you can try out tamir library to connect to unix. A lot of coding would be required to get it to work though.